code: public Paragraph<PS, SEG, S> setParagraphStyle(PS paragraphStyle) {
          return new Paragraph<>(paragraphStyle, segmentOps, segments, styles);
      }
docs: Creates a new Paragraph which has the same contents as the current Paragraph,
  but the given paragraph style.
  
  Note that because Paragraph is immutable, a new Paragraph is returned.
  Despite the setX name, the current object is unchanged.
  
  @param paragraphStyle The new paragraph style
  @return A new paragraph with the same segment contents, but a new paragraph style.