code: public ConfigOptionBuilder setDefaultWith( Object defaultValue ) {
          co.setHasDefault( true );
          co.setValue( defaultValue );
          return setOptional();
      }
docs: if you have a default, it's automatically optional