public abstract class Zzza { void foo(Object o) { if (o instanceof String) { for (java.lang.Object : ((String) o).substring(<caret>)) { } } } }