class Test { void test(Object object) { if (object instanceof String s) { s = "hello"; // not reported System.out.println(s); } if (object instanceof String ignored) { } if (object instanceof R(var x, var y)) { if (1 == 1) { System.out.println(x); } x = 2; System.out.println(x); y = 1; System.out.println(y); } } record R(int x, int y) { } }