void () { myFixture.configureByText("Test.java", """ import java.util.List; public class Test { record Record<T>(T x) { } public static void test2(List<Record<? extends Record<? extends String>>> records) { for (Record(Record(var x)) : records) { System.out.println(x.isEmpty()); } } } """); myFixture.checkHighlighting(); }