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