Find Collections.singletonList/Set/Map(...) calls

Proprietary

Collections.singletonList(x) is the Java idiom for a one-element read-only list. listOf(x) returns the same shape with cleaner syntax and consistent overload selection for setOf/mapOf.

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