Prefer Optional.isEmpty()

MSAL

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

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

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