Move @Nullable method annotations to the return type

MSAL

Moves @Nullable annotations from the method declaration to its return type. Only annotations declared with @Target(ElementType.TYPE_USE) are moved, as the return type is a type context; declaration annotations such as javax.annotation.Nullable are left on the method.

org.openrewrite.staticanalysis.NullableOnMethodReturnType
mod run . --recipe=org.openrewrite.staticanalysis.NullableOnMethodReturnType

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