void () { myFixture.configureByText("Test.java", """ interface I { void runI(); } record R2<T>(T x) {} class Test { public static void test(R2<R2<? extends I>> r) { if (r instanceof R2(R2(var x))) { x.runI(); } } } """); myFixture.checkHighlighting(); }