Move a leading @Nullable to the type-use position

Proprietary

Relocates a leading (declaration-position) JSpecify @Nullable to immediately before the type when modifiers separate them, turning @Nullable private final String f into private final @Nullable String f (and the same for method returns). JSpecify @Nullable is a TYPE_USE annotation, so the type-use position is the precise, conventional placement; the leading form compiles and means the same but reads less clearly. Only the Nullable simple name is moved (declaration-only flavors like @CheckForNull are left alone), the existing annotation is reused, and it only acts when a modifier precedes the type.

io.moderne.nullability.MoveNullableToTypeUsePosition
mod run . --recipe=io.moderne.nullability.MoveNullableToTypeUsePosition

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