AnAction (@NotNull String id, @NotNull ShortcutSet shortcutSet, @NotNull JComponent component) { AnAction newAction = wrap(ActionManager.getInstance().getAction(id)); newAction.registerCustomShortcutSet(shortcutSet, component); return newAction; }