Use nonEmpty instead of size > 0
ProprietaryReplaces collection.size > 0 with collection.nonEmpty for clarity and potential performance benefits.
org. openrewrite. scala. performance. UseNonEmptymod run . --recipe= org. openrewrite. scala. performance. UseNonEmptyInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.