LanguageLevel () { LanguageLevel highest = LanguageLevel.HIGHEST; for (LanguageLevel level : LanguageLevel.values()) { if (isLanguageLevelAccepted(level)) { highest = level; } else { break; } } return highest; }