Collapse assertThat followed by return into single statement

MSAL

Collapse an assertThat statement followed by a return of the same object into a single return assertThat(...).assertions().actual() statement.

org.openrewrite.java.testing.assertj.ReturnActual
mod run . --recipe=org.openrewrite.java.testing.assertj.ReturnActual

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