Sorted set stream should be collected to LinkedHashSet
MSALConverts stream.sorted().collect(Collectors.toSet()) to stream.sorted().collect(Collectors.toCollection(LinkedHashSet::new)), so that the sort order is preserved.
org. openrewrite. staticanalysis. SortedSetStreamToLinkedHashSetmod run . --recipe= org. openrewrite. staticanalysis. SortedSetStreamToLinkedHashSetInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.