Match if (is*Enabled()) with logging statements

MSAL

Change any if (is*Enabled()) statements that do not match the maximum log level used in the then part to use the matching is*Enabled() method for that log level. This ensures that the logging condition is consistent with the actual logging statements.

org.openrewrite.java.logging.slf4j.MatchIsLogLevelEnabledWithLogStatements
mod run . --recipe=org.openrewrite.java.logging.slf4j.MatchIsLogLevelEnabledWithLogStatements

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