If it is important that the environment is not null, why not make it `nonnull`?