void () { myFixture.configureByText("Test.java", """ interface I<T> {} record Box<T>(T t) implements I<T> {} class X { String test(I<String> i) { return switch(i) { case Box(var s) -> s.trim(); default -> null; }; } } """); myFixture.enableInspections(new RawUseOfParameterizedTypeInspection()); myFixture.checkHighlighting(); }