void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement file = descriptor.getPsiElement(); if (!(file instanceof PsiFile)) { return; } CodeStyleManager.getInstance(project).reformat(file, true); }