void () { String o = "Hello"; switch (o) { case String s when s.length() == 1: System.out.println(); case null: System.out.println(<error descr="Cannot resolve symbol 's'">s</error>); break; default: throw new IllegalStateException("Unexpected value: " + o); } }