DisplayPriority (@NotNull AbstractCodeStylePropertyMapper mapper) { if (mapper instanceof GeneralCodeStylePropertyMapper) { return DisplayPriority.GENERAL_SETTINGS; } else if (mapper instanceof LanguageCodeStylePropertyMapper) { Language language = ((LanguageCodeStylePropertyMapper)mapper).getLanguage(); LanguageCodeStyleSettingsProvider provider = LanguageCodeStyleSettingsProvider.forLanguage(language); if (provider != null) { return provider.getDisplayPriority(); } } return DisplayPriority.OTHER_SETTINGS; }