Reports loops which can be collapsed into a single List.replaceAll() call.

Example:


  for (int i = 0; i < strings.size(); i++) {
    String str = strings.get(i).toLowerCase();
    strings.set(i, str);
  }

After the quick-fix is applied:


  strings.replaceAll(String::toLowerCase);

This inspection only reports if the language level of the project or module is 8 or higher.

New in 2022.1