void (@Nullable JComponent component) { if (component == null) { component = myMessagePanel; } if (component.getParent() == myMainPanel) return; myMainPanel.setContent(component); if (ServiceViewUIUtils.isNewServicesUIEnabled()) { myMainPanel.getToolbar().setVisible(ServiceViewActionProvider.isActionToolBarRequired(component)); } }