public static void registerAction(@NotNull AnAction action, @NotNull JComponent component) {
    action.registerCustomShortcutSet(action.getShortcutSet(), component);
  }
public static void registerAction(@NotNull AnAction action, @NotNull JComponent component)