Find mutableSetOf<T>().also { it.add(x) } patterns

Proprietary

Same shape as the mutableListOf variant — use buildSet { add(...) } for the same readability gain.

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