class Test { String[] foos; void test() { for (String foo : <selection>foos</selection>) { } System.out.println(foos.length); } }