@Nullable public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag) { ASTNode tagNode = tag.getNode(); if(tagNode == null) { return null; } ASTNode nameElement = roleFinder.findChild(tagNode); if(nameElement == null) { return null; } return nameElement.getPsi(); }
@Nullable public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag) { ASTNode tagNode = tag.getNode(); if (tagNode == null) return null; ASTNode nameElement = roleFinder.findChild(tagNode); if (nameElement == null) return null; return nameElement.getPsi(); }