Find also { } blocks that mutate the receiver

Proprietary

also { } is for side effects that don't change the receiver — logging, validation, registering a callback. If the lambda mutates it, prefer apply { … }, which is built for that and reads as configuration.

org.openrewrite.kotlin.idiom.FindAlsoWithMutation$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.idiom.FindAlsoWithMutation$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.