public class WithoutConflictsSwitchNestedDeconstruction {
  public static void main(String[] args) {
    final Point point = new Point(199, null);
    point.foo(point);
  }
  public record Point(int x<caret>, Point y) {
    void foo(Object obj) {
      switch (obj) {
        case Point(int x, Point(int x2, Point y2)) -> {
          System.out.println("y2");
        }
        default -> {
          System.out.println("default");
        }
      }
    }
  }
}