code: public GeneratorParameter add(Preference preference)
      {
          preferences.add(preference);
          Collections.sort(preferences);
          return this;
      }
docs: Add a preference.
  
  @param preference The preference to add.
  @return The generator parameter itself.