Prefer Set.copyOf(..) in Java 10 or higher

MSAL

Replaces .common.collect.ImmutableSet.copyOf(..) if the returned type is immediately down-cast.

org.openrewrite.java.migrate.guava.NoGuavaImmutableSetCopyOf
mod run . --recipe=org.openrewrite.java.migrate.guava.NoGuavaImmutableSetCopyOf

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