Use Collection.min() instead of Collections.min(coll)
Proprietaryjava.util.Collections.min(coll) is JVM-only; Kotlin's Collection.min() extension is multiplatform and reads as a receiver call. Both throw NoSuchElementException on an empty collection.
org. openrewrite. kotlin. migrate. UseCollectionMin$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseCollectionMin$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.