ExtensionPoint (PsiElement element) { if ((element instanceof PomTargetPsiElement || element instanceof XmlTag) && DescriptorUtil.isPluginXml(element.getContainingFile())) { return ExtensionPoint.resolveFromDeclaration(element); } return null; }