TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { HighlightingSessionImpl session = (HighlightingSessionImpl)HighlightingSessionImpl.getFromCurrentIndicator(file); boolean canChangeFileSilently = session.canChangeFileSilently(); return canChangeFileSilently ? new ShowAutoImportPass(file, editor, session.getVisibleRange()) : null; }