Loop can be collapsed with Stream API
Reports loops which can be replaced with stream API calls using lambda expressions.
Such a replacement changes the style from imperative to more functional and makes the code more compact.
After the quick-fix is applied:
This inspection only reports if the language level of the project or module is 8 or higher.
Warn if only 'forEach' replacement is available
Warn if the loop is trivial
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3