Replace unnecessary intermediate collection before .toSet
ProprietaryReplaces patterns like .toList.toSet or .toSeq.toSet with .toSet to avoid creating an unnecessary intermediate collection.
org. openrewrite. scala. cleanup. UseDirectToSetmod run . --recipe= org. openrewrite. scala. cleanup. UseDirectToSetInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.