Use listOf(x) instead of Collections.singletonList(x)

Proprietary

java.util.Collections.singletonList(x) is JVM-only; Kotlin's multiplatform listOf(x) produces an immutable single-element list.

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