Replace with dereference expression
is a premium code action that replaces null check for selected expression with pattern matching and replace all occurrences of that expression with a non-null variable:
It works also for Nullable<T>.HasValue
checks: