ActionToolbarImpl (@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(null)) { action.registerCustomShortcutSet(action.getShortcutSet(), myMainPanel); } toolbarImpl.setBorder(BorderFactory.createEmptyBorder()); return toolbarImpl; }