EditorEx (@Nullable Project project, boolean foldingOutlineShown, boolean lineMarkerAreaShown) { EditorFactory editorFactory = EditorFactory.getInstance(); Document document = ((EditorFactoryImpl)editorFactory).createDocument(true); UndoUtil.disableUndoFor(document); EditorEx editor = (EditorEx)editorFactory.createViewer(document, project, EditorKind.CONSOLE); setupConsoleEditor(editor, foldingOutlineShown, lineMarkerAreaShown); return editor; }