boolean (DomElement domElement) { return (domElement instanceof MavenDomDependency && domElement.getParentOfType(MavenDomDependencyManagement.class, false) == null) || (domElement instanceof MavenDomPlugin && domElement.getParentOfType(MavenDomPluginManagement.class, false) == null) || domElement instanceof MavenDomParent; }