@NotNull
  private ActionToolbarImpl createToolbar(@NotNull DefaultActionGroup toolbarActions,
                                          @NotNull String actionsPlace,
                                          @Nullable Component toolbarActionsDataProvider) {
    toolbarActions.add(new Separator());
    DefaultActionGroup wrappedActions = wrapActions(toolbarActions, actionsPlace, toolbarActionsDataProvider);

    var toolbarImpl = new ActionToolbarImpl(actionsPlace, wrappedActions, true);
    toolbarImpl.setTargetComponent(null);
    for (AnAction action : wrappedActions.getChildren(ActionManager.getInstance())) {
      action.registerCustomShortcutSet(action.getShortcutSet(), myMainPanel);
    }

    toolbarImpl.setBorder(BorderFactory.createEmptyBorder());
    return toolbarImpl;
  }
@NotNull
  private ActionToolbarImpl createToolbar(@NotNull DefaultActionGroup toolbarActions,
                                          @NotNull String actionsPlace,
                                          @Nullable Component toolbarActionsDataProvider)