EditorHighlighter (boolean forceEmpty) { EditorHighlighter highlighter = myFile != null && !forceEmpty ? EditorHighlighterFactory.getInstance().createEditorHighlighter(myProject, myFile) : new EmptyEditorHighlighter(EditorColorsManager.getInstance().getGlobalScheme(), HighlighterColors.TEXT); highlighter.setText(myEditor.getDocument().getImmutableCharSequence()); return highlighter; }