void (@NotNull List<? extends AnAction> actions, @NotNull JComponent shortcutHolder) { DataContext context = DataManager.getInstance().getDataContext(this); for (AnAction action : actions) { ShortcutSet shortcut = null; if (action instanceof DefaultActionGroup) { updateBindings((DefaultActionGroup)action, shortcutHolder); } if (action instanceof ContextAwareShortcutProvider) { shortcut = ((ContextAwareShortcutProvider)action).getShortcut(context); } else if (action instanceof ShortcutProvider) { shortcut = ((ShortcutProvider)action).getShortcut(); } if (shortcut != null) { action.registerCustomShortcutSet(shortcut, shortcutHolder); } } }