public static void setActions(@NotNull JComponent component, @Nullable AnAction action) {
    setActions(component, action == null ? null : new DefaultActionGroup(action));
  }
public static void setActions(@NotNull JComponent component, @Nullable AnAction action)