private static void addShortcuts(@NotNull AnAction action, @NotNull ShortcutSet newShortcuts) {
    if (action.getShortcutSet().hasShortcuts()) {
      action.registerCustomShortcutSet(new CompositeShortcutSet(action.getShortcutSet(), newShortcuts), null);
    }
    else {
      action.registerCustomShortcutSet(newShortcuts, null);
    }
  }
private static void addShortcuts(@NotNull AnAction action, @NotNull ShortcutSet newShortcuts)