@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
      AnAction[] children = super.getChildren(e);
      if (e != null) {
        ToolWindow window = e.getData(PlatformDataKeys.TOOL_WINDOW);
        SingleContentSupplier data = e.getData(SingleContentSupplier.KEY);
        if (data instanceof RunTabSupplier && window != null) {
          boolean isMoveToolbar = ((RunTabSupplier)data).isMoveToolbar();
          if (!isMoveToolbar) return children;
          ContentManager manager = window.getContentManager();
          if (manager.getContentCount() > 1) {
            ActionGroup actions = data.getToolbarActions();
            if (actions != null) return merge(actions.getChildren(e), children);
          }
        }
      }
      return children;
    }
@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e)