Hello, I am trying to find the PSIElement of the f...
# intellij-plugins
g
Hello, I am trying to find the PSIElement of the following (X) in the editor:
Copy code
<?xml version="1.0" encoding="utf-8"?>
<resources>(X)
    (X)<color name="electric_violet">#AD32FE</color>(X)
    (X)
</resources>
In a Completion Contributor I am trying to find the places where (X) shows up, basically all the white spaces inside the xml tag “resources”. I tried many things, like:```psiElement().inside(psiElement().withName("resources")``` Etc. and nothing worked. The only way I managed to do that is inside the CompletionProvider callback, do to the following:
Copy code
val xmlTagImpl = parameters.position.parent.parent as? XmlTagImpl
                if (xmlTagImpl?.name == "resources") {
                }
Thanks in advance for your help!