void () { doTest(""" class A { public boolean check(final boolean flag) { return flag || !(getDelegate() instanceof Bar) || Boolean.TRUE.equals(((Bar)getDelegate()).getValue()); } native Foo getDelegate(); static class Foo {} interface Bar { Boolean getValue();} }"""); }