Use toList() instead of asSequence().toList()

Proprietary

asSequence() wraps the iterable in a Sequence only to immediately tear it back into a List. The intermediate Sequence allocation does no work.

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