void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { if (myIsTag) { final XmlTag tag = (XmlTag)descriptor.getPsiElement(); final XmlTag parentTag = tag.getParentTag(); final DomElement domElement = DomManager.getDomManager(project).getDomElement(tag); assert domElement != null; domElement.undefine(); if (parentTag != null && parentTag.isValid()) { parentTag.collapseIfEmpty(); } } else { final DomElement domElement = DomManager.getDomManager(project).getDomElement((XmlAttribute)descriptor.getPsiElement()); assert domElement != null; domElement.undefine(); } }