Use getFirst() instead of stream().findFirst().orElseThrow()
MSALFor SequencedCollections, use collection.getFirst() instead of collection.stream().findFirst().orElseThrow().
org. openrewrite. java. migrate. util. StreamFindFirstmod run . --recipe= org. openrewrite. java. migrate. util. StreamFindFirstInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.