protected @NotNull EditorEx doCreateHistoryEditor() {
    EditorFactory editorFactory = EditorFactory.getInstance();
    Document historyDocument = ((EditorFactoryImpl)editorFactory).createDocument(true);
    UndoUtil.disableUndoFor(historyDocument);
    return (EditorEx)editorFactory.createViewer(historyDocument, getProject(), EditorKind.CONSOLE);
  }
protected @NotNull EditorEx doCreateHistoryEditor()