Use lowercase(locale) instead of toLowerCase(locale)

Proprietary

The JVM String.toLowerCase(Locale) overload was deprecated in Kotlin 1.5 alongside the no-arg form; the replacement lowercase(Locale) keeps the locale parameter and uses the new spelling.

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