void (XmlTag tag) { DomElement domElement = DomManager.getDomManager(myProject).getDomElement(tag); if (!(domElement instanceof GenericDomValue)) { badPlace = true; return; } DomElement parent = domElement.getParent(); if (parent instanceof MavenDomShortArtifactCoordinates) { domCoordinates = (MavenDomShortArtifactCoordinates)parent; } else { badPlace = true; } }