@Override
  public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
    ActionGroup delegate = (ActionGroup)(e != null ? e.getActionManager() : ActionManager.getInstance())
      .getAction(getDelegateGroupId());
    if (delegate == null) return EMPTY_ARRAY;
    return ActionWrapperUtil.getChildren(e, this, delegate);
  }
@Override
  public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e)