This inspection reports while loops which iterate over collections, and can be replaced with the "for each" iteration syntax, which is available in Java 5 and newer.

This inspection only reports if the project or module is configured to use a language level of 5.0 or higher.

Powered by InspectionGadgets