TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { Project project = file.getProject(); TextRange restrict = FileStatusMap.getDirtyTextRange(editor.getDocument(), file, Pass.UPDATE_ALL); if (restrict == null) return new ProgressableTextEditorHighlightingPass.EmptyPass(project, editor.getDocument()); ProperTextRange priority = HighlightingSessionImpl.getFromCurrentIndicator(file).getVisibleRange(); return new ChameleonSyntaxHighlightingPass(file, editor.getDocument(), ProperTextRange.create(restrict), priority, editor, new DefaultHighlightInfoProcessor()); }