code: public final void addGenerator(@NotNull final GeneratorConfig generator) {
          Contract.requireArgNotNull("generator", generator);
          if (list == null) {
              list = new ArrayList<>();
          }
          list.add(generator);
      }
docs: Adds a generator to the list. If the list does not exist it's created.
  
  @param generator
  Generator to add.