Remove redundant null checks before instanceof

MSAL

Removes redundant null checks before instanceof operations since instanceof returns false for null. Removing the extra check simplifies the conditional and makes the null-safety guarantee of instanceof more visible to readers.

org.openrewrite.staticanalysis.RemoveRedundantNullCheckBeforeInstanceof
mod run . --recipe=org.openrewrite.staticanalysis.RemoveRedundantNullCheckBeforeInstanceof

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