Replaces a for-each loop which iterates over a collection with an equivalent for loop that uses an java.util.Iterator to iterate over the collection.