docs: public void setSegments(java.util.Collection<Segment> segments) {
          if (segments == null) {
              this.segments = null;
              return;
          }
  
          this.segments = new java.util.ArrayList<Segment>(segments);
      }