PsiElement (Extension e) { DomTarget extensionTarget = DomTarget.getTarget(e); if (extensionTarget != null) { return PomService.convertToPsi(extensionTarget); } // shouldn't happen, fallback for additional safety return e.getXmlTag(); }