Use emptySet<T>() instead of setOf<T>()

Proprietary

setOf() with no entries delegates to emptySet(). Call the named factory directly to make the empty-by-construction intent visible.

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