Use toList() instead of asSequence().toList()
ProprietaryasSequence() 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$KtRecipemod 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.