Use nonEmpty instead of size > 0

Proprietary

Replaces collection.size > 0 with collection.nonEmpty for clarity and potential performance benefits.

org.openrewrite.scala.performance.UseNonEmpty
mod run . --recipe=org.openrewrite.scala.performance.UseNonEmpty

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