void (Object o) { switch (o) { case R2(String s, String s2) when s2.length() > 11 -> { if (s.length() == 9) { System.out.println(o); } } case R2(Object s, R1(String s2)) when s2.length() > 7 -> { if (s.hashCode() == 2) { System.out.println(o); } } case Object ob -> System.out.println(o); } }