Replace .getOrElse(null) with .orNull

Proprietary

Replaces .getOrElse(null) on Option values with .orNull for a cleaner, idiomatic alternative.

org.openrewrite.scala.cleanup.UseOrNull
mod run . --recipe=org.openrewrite.scala.cleanup.UseOrNull

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