Merge collapsible if statements

Proprietary

Combine nested if statements that have no else branch into a single if joined with and. It only fires where the inner if is the outer one's only statement and each header starts a line of its own.

org.openrewrite.python.codequality.CollapsibleIfStatements
mod run . --recipe=org.openrewrite.python.codequality.CollapsibleIfStatements

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