Find stream.filter(...).map(...) chains

Proprietary

A filter().map() chain on Stream is structurally identical to the same chain on Iterable/Sequence — the Stream machinery just adds Collector requirements at the terminal. Migrate to Kotlin collections; if laziness matters, use asSequence() once at the head.

org.openrewrite.kotlin.interop.FindStreamFilterMap$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.interop.FindStreamFilterMap$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.