LanguageLevel () { Matcher matcher = JDK_SELECT_PATTERN.matcher(getTestName(false)); if (matcher.find()) { LanguageLevel level = LanguageLevel.parse(matcher.group(1)); if (level != null) { String group = matcher.group(2); if (group != null) { level = LanguageLevel.valueOf(level + "_PREVIEW"); } return level; } } return getDefaultLanguageLevel(); }