public class TestCase extends Zzz { boolean foo(String s) { } { Object ooo; if (ooo instanceof String && foo((String) ooo)<caret>) { } } }