CommonCodeStyleSettings (@NotNull String langName) { Map<String, CommonCodeStyleSettings> map = getCommonSettingsMap(); for (Language language : Language.getRegisteredLanguages()) { if (langName.equals(language.getDisplayName())) { CommonCodeStyleSettings settings = map.get(language.getID()); if (settings != null) { return settings; } } } return new CommonCodeStyleSettings(Language.ANY); }