void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final XmlAttribute attribute = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlAttribute.class, false); GenericAttributeValue<?> domElement = DomManager.getDomManager(project).getDomElement(attribute); LOG.assertTrue(domElement != null); domElement.setStringValue(myCorrectValue); }