Prefer Optional.isPresent()

MSAL

Prefer Optional.isPresent() instead of using !Optional.isEmpty() in Java 11 or higher.

org.openrewrite.java.migrate.util.OptionalNotEmptyToIsPresent
mod run . --recipe=org.openrewrite.java.migrate.util.OptionalNotEmptyToIsPresent

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