void (Object o) { System.out.println("2"); switch (o) { case Integer n when n > 1 -> { if (n == 1) { System.out.println("212"); } System.out.println(2); System.out.println(1); } case Integer n when n > 2 -> { if (n == 1) { System.out.println("4"); } } case Integer n when n > 3 -> { System.out.println("4"); } case Object ob -> System.out.println(o); } System.out.println("2"); }