void (final @NotNull QuickList oldQuickList, final @NotNull QuickList newQuickList) { myManager.visitMutableKeymaps(keymap -> { String actionId = oldQuickList.getActionId(); Shortcut[] shortcuts = keymap.getShortcuts(actionId); if (shortcuts.length != 0) { String newActionId = newQuickList.getActionId(); for (Shortcut shortcut : shortcuts) { removeShortcut(keymap, actionId, shortcut); addShortcut(keymap, newActionId, shortcut); } } }); myQuickListsModified = true; }