void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final XmlTag myTag = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlTag.class); myTag.setName(myText); }