void (@NotNull DefaultWelcomeScreenTab tab, Component component) { boolean wasSelected = myLeftSidebar.selectTab(tab); if (!wasSelected) return; var panel = (JComponent)tab.myAssociatedComponent.getComponent(0); panel.removeAll(); panel.add(component, BorderLayout.CENTER); revalidate(); repaint(); leftSidebarHolder.setVisible(false); }