void () { final GenericTypes<String, Integer> test = new GenericTypes<String, Integer>(); for (Iterator<Integer> iterator = test.iterator(); iterator.hasNext(); ) { Integer integer = iterator.next(); } }