public abstract class Zzza { void foo(Object o) { if (o instanceof String) { o.substr } } }