Apply var to generic method invocations

MSAL

Apply var to variables initialized by invocations of generic methods. Invocations with neither type nor method arguments are left alone, as their type arguments are inferred from the declared type, which var would lose.

org.openrewrite.java.migrate.lang.var.UseVarForGenericMethodInvocations
mod run . --recipe=org.openrewrite.java.migrate.lang.var.UseVarForGenericMethodInvocations

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