ActionToolbarImpl (AnAction @NotNull ... actions) { ActionToolbarImpl toolbar = (ActionToolbarImpl)ActionManager.getInstance() .createActionToolbar(ActionPlaces.EDITOR_TOOLBAR, new DefaultActionGroup(actions), true); toolbar.setForceMinimumSize(true); toolbar.setTargetComponent(toolbar); toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY); toolbar.setBorder(JBUI.Borders.empty(3)); return toolbar; }