public Attr(String name,@Nullable Format format){
  this.name=name;
  if (format != null) {
    formats=Collections.singletonList(format);
  }
}

public Attr ( String name , @ Nullable Format format ) { this . name = name ; if ( format != null ) { formats = Collections . singletonList ( format ) ; } }
construct a new attribute
