void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { XmlAttribute attribute = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlAttribute.class); if (attribute == null) return; attribute.setName(name); }