public static void update(@NotNull AnActionEvent e,
                            @NotNull AnAction wrapper,
                            @NotNull AnAction delegate) {
    UpdateSession session = e.getUpdateSession();
    JComponent customComponent =
      session == UpdateSession.EMPTY || !(wrapper instanceof CustomComponentAction) ? null :
      e.getPresentation().getClientProperty(CustomComponentAction.COMPONENT_KEY);
    AnActionEvent event = customizeEvent(e, wrapper);
    if (session == UpdateSession.EMPTY || e != event) delegate.update(event);
    else e.getPresentation().copyFrom(session.presentation(delegate), customComponent, true);
  }
public static void update(@NotNull AnActionEvent e,
                            @NotNull AnAction wrapper,
                            @NotNull AnAction delegate)