Find xs.forEach { ys.add(it) } patterns
Proprietaryxs.forEach { ys.add(it) } is the loop-form of ys.addAll(xs). The bulk operation is a single method call and uses the most efficient copy strategy the receiver supports.
org. openrewrite. kotlin. bestpractices. FindForEachAddCandidate$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindForEachAddCandidate$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.