Find Collections.emptyList/Set/Map() calls
ProprietaryCollections.emptyList() (and its emptySet/emptyMap siblings) predate Kotlin's stdlib factories. emptyList<T>()/emptySet<T>()/emptyMap<K, V>() carry the same singletons, infer the type parameter at the call site, and don't drag the java.util.Collections import into Kotlin code.
org. openrewrite. kotlin. interop. FindJavaUtilCollectionsEmptyList$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindJavaUtilCollectionsEmptyList$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.