void (@NotNull ServiceViewActionProvider actionManager) { boolean horizontal = isHorizontal(); ActionToolbar toolbar = actionManager.createServiceToolbar(myMainPanel, horizontal); myMainPanel.setToolbar(actionManager.wrapServiceToolbar(toolbar.getComponent(), horizontal)); }