code: public Attribute withTraits(Trait... traits) {
          if (this.traits == null) {
              setTraits(new java.util.ArrayList<Trait>(traits.length));
          }
          for (Trait ele : traits) {
              this.traits.add(ele);
          }
          return this;
      }
docs: <p>
  Contextual information for this attribute.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setTraits(java.util.Collection)} or {@link #withTraits(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param traits
  Contextual information for this attribute.
  @return Returns a reference to this object so that method calls can be chained together.