void (Language lang) { final Project currProject = ProjectUtil.guessCurrentProject(getPanel()); CodeStyleSettings rootSettings = CodeStyle.getSettings(currProject); CodeStyleSettings targetSettings = getSettings(); applyLanguageSettings(lang, rootSettings, targetSettings); reset(targetSettings); onSomethingChanged(); }