Simplify Nullable<T>.HasValue

Proprietary

Replace x.HasValue with x != null and !x.HasValue with x == null.

OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.SimplifyNullableHasValue
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.SimplifyNullableHasValue

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