XmlElementDescriptor (XmlTag tag, XmlTag contextTag, XmlElementDescriptor parentDescriptor) { DomElement domElement = DomManagerImpl.getDomManager(tag.getProject()).getDomElement(contextTag); if (domElement != null) { MavenDomConfiguration configuration = DomUtil.getParentOfType(domElement, MavenDomConfiguration.class, false); if (configuration != null && configuration.getGenericInfo().getFixedChildrenDescriptions().isEmpty()) { return new AnyXmlElementDescriptor(null, null); } } return super.getElementDescriptor(tag, contextTag, parentDescriptor); }