for (int ${index} = 0; ${index} < ${collection}.size(); ${index}++) { ${type} ${element} = (${type}) ${collection}.get(${index}); ${cursor} }