Editor (@NotNull Document document, Project project, @NotNull VirtualFile file, boolean isViewer, @NotNull EditorKind kind) { EditorEx editor = createEditor(document, isViewer, project, kind); editor.setHighlighter(EditorHighlighterFactory.getInstance().createEditorHighlighter(project, file)); return editor; }