JComponent (@NotNull Presentation presentation, @NotNull String place) { return new ActionButtonWithText(this, presentation, place, ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE) { @Override protected @Nullable String getShortcutText() { Shortcut shortcut = ActionManager.getInstance().getKeyboardShortcut("EditSource"); if (shortcut != null) { return KeymapUtil.getShortcutText(shortcut); } return null; } }; }