void (@NotNull ServiceViewActionProvider actionProvider) { boolean inDetails = ServiceViewUIUtils.isNewServicesUIEnabled(); myServiceActionToolbar = actionProvider.createServiceToolbar(myMainPanel, inDetails); if (inDetails) { JComponent wrapper = ServiceViewUIUtils.wrapServicesAligned(myServiceActionToolbar); myServiceActionToolbarWrapper = actionProvider.wrapServiceToolbar(wrapper, inDetails); myDetailsPanel.add(myServiceActionToolbarWrapper, BorderLayout.NORTH); } else { myContentPanel.setToolbar(actionProvider.wrapServiceToolbar(myServiceActionToolbar.getComponent(), inDetails)); } }