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