LanguageLevel (@NotNull TestJdkKind kind) { return switch (kind) { case MOCK_JDK -> LanguageLevel.JDK_1_8; case FULL_JDK_11 -> LanguageLevel.JDK_11; case FULL_JDK_17 -> LanguageLevel.JDK_17; case FULL_JDK -> LanguageLevel.JDK_1_8; default -> throw new UnsupportedOperationException(kind.toString()); }; }