Add a `checkNotNull` check to all mandatory fields, and annotate as `@Nullable` the parameters of the constructor that can be null.