Use removeAt(lastIndex) instead of removeLast()
ProprietaryMutableList.removeLast() was deprecated in Kotlin 2.0 alongside removeFirst() for the same SequencedCollection conflict. Prefer removeAt(lastIndex).
org. openrewrite. kotlin. migrate. UseRemoveAtLastIndexForRemoveLast$KtRecipemod 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.