Collection.removeIf call.
The loops like this are reported:
for (Iterator<String> it = collection.iterator(); it.hasNext(); ) {
String aValue = it.next();
if(shouldBeRemoved(aValue)) {
it.remove();
}
}
This conversion is available since Java 8 only.
New in 2016.3