void (String tab) { NewCodeStyleSettingsPanel selectedPanel = ensureCurrentPanel(); CodeStyleAbstractPanel settingsPanel = selectedPanel.getSelectedPanel(); if (settingsPanel instanceof TabbedLanguageCodeStylePanel tabbedPanel) { tabbedPanel.changeTab(tab); } }