void (@NotNull Editor editor) { super.onEditorAdded(editor); Runnable runnable = () -> { final Editor e = getEditor(); if (e != null) { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(e.getContentComponent(), true)); } }; SwingUtilities.invokeLater(runnable); }