void () { for (JavaSdkVersion version : JavaSdkVersion.values()) { LanguageLevel languageLevel = version.getMaxLanguageLevel(); assertFalse("Fails for " + version, languageLevel.isPreview() && languageLevel != LanguageLevel.JDK_X); } }