void () { for (Configurable configurable : getConfigurables()) { JComponent component = configurable.createComponent(); assert component != null; component.setBorder(JBUI.Borders.empty(8, 8)); myTabbedPane.addTab(configurable.getDisplayName(), component); } myTabbedPane.setSelectedIndex(ourLastSelectedTabIndex); }