JComponent (@NotNull Editor editor, @NlsContexts.BorderTitle String title) { EditorSettings memberEditorSettings = editor.getSettings(); memberEditorSettings.setGutterIconsShown(false); memberEditorSettings.setLineNumbersShown(false); JComponent memberComponent = editor.getComponent(); IdeaTitledBorder memberTitleBorder = IdeBorderFactory.createTitledBorder(title, false); memberTitleBorder.setShowLine(false); memberComponent.setBorder(memberTitleBorder); return memberComponent; }