class Main { void test(Object o) { if (o instanceof ((String s) && s.length() > 1)) { } s = "fsfsdfsd"; } }