void () { IdeaTestUtil.withLevel(myFixture.getModule(), LanguageLevel.JDK_21, () -> { myFixture.configureByFile(getTestName(false) + ".java"); myFixture.complete(CompletionType.SMART); List<String> lookup = myFixture.getLookupElementStrings(); assertContainsElements(lookup, "case A", "case B", "default", "case null", "case null, default"); }); }