public class Foo { void m(Object o) { o instanceof ? (() o) : null; } }