Use JavaTemplate.apply() static method

MSAL

Replaces JavaTemplate.builder(template).build().apply(cursor, coordinates, args...) with JavaTemplate.apply(template, cursor, coordinates, args...) when the builder chain has no intermediate configuration methods.

org.openrewrite.java.recipes.UseJavaTemplateStaticApply
mod run . --recipe=org.openrewrite.java.recipes.UseJavaTemplateStaticApply

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