void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element1 = descriptor.getPsiElement(); PsiFile file = element1 == null ? null : element1.getContainingFile(); if (file == null || file.getFileType() != XmlFileType.INSTANCE) return; action.applyFix(project, descriptor); }