TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { boolean serializeCodeInsightPasses = ((TextEditorHighlightingPassRegistrarImpl)TextEditorHighlightingPassRegistrar.getInstance(file.getProject())).isSerializeCodeInsightPasses(); LineMarkersPass.Mode myMode = serializeCodeInsightPasses ? LineMarkersPass.Mode.SLOW : LineMarkersPass.Mode.NONE; return LineMarkersPassFactory.createLineMarkersPass(file, editor, myMode, Pass.SLOW_LINE_MARKERS); }