void (Content content, boolean visible) { RunContentDescriptor descriptor = RunContentManagerImpl.getRunContentDescriptorByContent(content); RunnerLayoutUiImpl ui = getRunnerLayoutUi(descriptor); if (ui != null) { if (!ServiceViewUIUtils.isNewServicesUIEnabled()) { ui.setLeftToolbarVisible(visible); } ui.setContentToolbarBefore(visible); } else { ActionToolbar toolbar = findActionToolbar(descriptor); if (toolbar != null) { toolbar.getComponent().setVisible(visible); } } }