static synchronized void register(@NotNull Component component,
                                    @NotNull Map<Long, ActionGroup> actions,
                                    @Nullable Customizer customizations) {
    final ActionGroup mainLayout = actions.get(0L);
    if (mainLayout == null) {
      LOG.debug("can't find main layout for component: %s (actions will not be added)", component);
      return;
    }
    if (LOG.isDebugEnabled()) {
      LOG.debug("register actions '" + mainLayout + "' for component " + component);
      for (Long key : actions.keySet()) {
        if (key != 0) {
          LOG.debug("\talt action '" + actions.get(key));
        }
      }
    }
    unregister(component); // cleanup for insurance
    ourComp2Actions.put(component, new ComponentActions(component, mainLayout, actions, customizations));
  }
static synchronized void register(@NotNull Component component,
                                    @NotNull Map<Long, ActionGroup> actions,
                                    @Nullable Customizer customizations)