void (DirDiffToolbarActions actions, JComponent component) { for (AnAction action : actions.getChildren(null)) { if (action instanceof ShortcutProvider) { final ShortcutSet shortcut = ((ShortcutProvider)action).getShortcut(); if (shortcut != null) { action.registerCustomShortcutSet(shortcut, component); } } } }