TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { TextRange textRange = FileStatusMap.getDirtyTextRange(editor.getDocument(), file, Pass.LOCAL_INSPECTIONS); if (textRange == null){ return new ProgressableTextEditorHighlightingPass.EmptyPass(file.getProject(), editor.getDocument()); } TextRange visibleRange = HighlightingSessionImpl.getFromCurrentIndicator(file).getVisibleRange(); return new MyLocalInspectionsPass(file, editor.getDocument(), textRange, visibleRange, new DefaultHighlightInfoProcessor()); }