Sorted set stream should be collected to LinkedHashSet

MSAL

Converts stream.sorted().collect(Collectors.toSet()) to stream.sorted().collect(Collectors.toCollection(LinkedHashSet::new)), so that the sort order is preserved.

org.openrewrite.staticanalysis.SortedSetStreamToLinkedHashSet
mod run . --recipe=org.openrewrite.staticanalysis.SortedSetStreamToLinkedHashSet

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