class C { public Object m() { for (Object o : new ArrayList()) { if (o != null) { return o; } } return null; } }