Prefer Collection.stream().anyMatch(Predicate)

MSAL

Prefer Collection.stream().anyMatch(Predicate) over Iterables.any(Collection, Predicate), and a filtered stream collected to a List over Iterables.filter(Collection, Predicate).

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

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