Prefer List#removeFirst() over less idiomatic alternatives

Apache 2.0

Warning: this rewrite changes the exception thrown for empty lists from IndexOutOfBoundsException to NoSuchElementException.

tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$ListRemoveFirstRecipe
mod run . --recipe='tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$ListRemoveFirstRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.