class Foo { void test(Object o) { if (o instanceof<caret> Foo) { } } }