TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { TextRange textRange = FileStatusMap.getDirtyTextRange(editor.getDocument(), file, Pass.UPDATE_ALL); if (textRange == null) { return new EmptyPass(file.getProject(), editor.getDocument()); } ProperTextRange visibleRange = HighlightingSessionImpl.getFromCurrentIndicator(file).getVisibleRange(); return new GeneralHighlightingPass(file, editor.getDocument(), textRange.getStartOffset(), textRange.getEndOffset(), true, visibleRange, editor, new DefaultHighlightInfoProcessor()); }