TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { PsiJavaFile javaFile = ObjectUtils.tryCast(file, PsiJavaFile.class); if (javaFile == null) return null; if (!StringContentIndentUtil.isDocumentUpdated(editor)) return null; return new JavaTextBlockIndentPass(file.getProject(), editor, javaFile); }