public @interface AssertNonNullIfNonNull
Here is an example use::
@AssertNonNullIfNonNull("id")
public @Pure @Nullable Long getId(){
return id;
}
You should PolyNull annotation instead.NonNull,
PolyNull,
NullnessCheckerpublic abstract String[] value