void (Object o, String title) { String header = "Hello"; switch (o) { case String s: switch (o) { case String <error descr="Variable 's' is already defined in the scope">s</error>: case String s1: System.out.println(title + header + ":" + s); } } }