Prefer Option over null

Proprietary

Replaces null literal with None. Idiomatic Scala uses Option instead of null.

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

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