Find mutableSetOf<T>().also { it.add(x) } patterns
ProprietarySame shape as the mutableListOf variant — use buildSet { add(...) } for the same readability gain.
org. openrewrite. kotlin. bestpractices. FindMutableSetAlsoAdd$KtRecipemod 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.