void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiFile file = descriptor.getPsiElement().getContainingFile(); if (isAvailable(project, null, file)) { WriteCommandAction.writeCommandAction(project).run(() -> invoke(project, null, file)); } }