void (Object o) { switch(o) { case String s: case String s1: System.out.println(<error descr="Cannot resolve symbol 's'">s</error>.length()); case Integer i: System.out.println(i); default: System.out.println(1); }; }