XmlElementDescriptor (XmlTag tag) { DomElement domElement = DomManagerImpl.getDomManager(tag.getProject()).getDomElement(tag); if (domElement == null) { PsiElement configuration = PsiTreeUtil.findFirstParent(tag, element -> element instanceof XmlTag && "configuration".equals(((XmlTag)element).getName())); if (configuration instanceof XmlTag) { DomElement configurationElement = DomManagerImpl.getDomManager(tag.getProject()).getDomElement((XmlTag)configuration); if (configurationElement instanceof MavenDomConfiguration && configurationElement.getGenericInfo().getFixedChildrenDescriptions().isEmpty()) { return new AnyXmlElementDescriptor(null, null); } } } return MavenDomElementDescriptorHolder.getInstance(tag.getProject()).getDescriptor(tag); }