boolean (@NotNull CharSequence id, @NotNull LanguageLevel level) { return level.isAtLeast(LanguageLevel.JDK_1_9) && JAVA9_KEYWORDS.contains(id) || level.isAtLeast(LanguageLevel.JDK_10) && VAR.contentEquals(id) || level.isAtLeast(LanguageLevel.JDK_16) && RECORD.contentEquals(id) || level.isAtLeast(LanguageLevel.JDK_14) && YIELD.contentEquals(id) || level.isAtLeast(LanguageLevel.JDK_17) && (SEALED.contentEquals(id) || PERMITS.contentEquals(id)) || level.isAtLeast(LanguageLevel.JDK_20_PREVIEW) && WHEN.contentEquals(id); }