Use listOf(x) instead of Collections.singletonList(x)
Proprietaryjava.util.Collections.singletonList(x) is JVM-only; Kotlin's multiplatform listOf(x) produces an immutable single-element list.
org. openrewrite. kotlin. migrate. UseListOf$KtRecipemod 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.