void () { myFixture.configureByText("a.java", """ record Point(int x, int y); class X { void test(String o) { switch(o) { case Poi<caret> } } }"""); myFixture.completeBasic(); // Options contributed by TypoTolerantMatcher; these classes contain nested public classes, // so we allow them, as they may potentially contain string constants assertEquals(List.of("Policy", "ForkJoinPool", "ThreadPoolExecutor"), myFixture.getLookupElementStrings()); }