void (Object o) { switch (o) { case R1(R1(String s)) when s.hashCode() == 5 -> { System.out.println("123456789"); } case R1(String s) when s.hashCode() == 3 -> { System.out.println("3"); } default -> System.out.println("3"); } System.out.println("1"); }