Use removeAt(lastIndex) instead of removeLast()

Proprietary

MutableList.removeLast() was deprecated in Kotlin 2.0 alongside removeFirst() for the same SequencedCollection conflict. Prefer removeAt(lastIndex).

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