void (final @NotNull Project project, final @NotNull ProblemDescriptor descriptor) { XmlTag tag = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), XmlTag.class, false); if (tag != null) { doFix(tag); } }