LanguageCodeStyleProvider (@NotNull Language language) { for (Language currLang = language; currLang != null; currLang = currLang.getBaseLanguage()) { LanguageCodeStyleProvider curr = forLanguage(currLang); if (curr != null) return curr; } return null; }