StacktraceEditorPanel (Project project, @NotNull Disposable parentDisposable) { EditorFactory editorFactory = EditorFactory.getInstance(); Document document = editorFactory.createDocument(""); Editor editor = editorFactory.createEditor(document, project); EditorSettings settings = editor.getSettings(); settings.setFoldingOutlineShown(false); settings.setLineMarkerAreaShown(false); settings.setIndentGuidesShown(false); settings.setLineNumbersShown(false); settings.setRightMarginShown(false); StacktraceEditorPanel editorPanel = new StacktraceEditorPanel(project, editor); editorPanel.setPreferredSize(JBUI.size(600, 400)); Disposer.register(parentDisposable, editorPanel); return editorPanel; }