Use removeAt(0) instead of removeFirst()

Proprietary

MutableList.removeFirst() was deprecated in Kotlin 2.0 because Java 21's SequencedCollection.removeFirst() introduced a conflicting signature with different return-on-empty semantics. Prefer removeAt(0) to keep the throwing behavior unambiguous.

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