boolean (LanguageCodeStyleSettingsProvider provider) { LanguageCodeStyleSettingsProvider.SettingsType[] types = { SPACING_SETTINGS, WRAPPING_AND_BRACES_SETTINGS }; for (LanguageCodeStyleSettingsProvider.SettingsType type : types) { if (!provider.getSupportedFields(type).isEmpty()) { return true; } } return !provider.getSupportedFields().isEmpty(); }