code: public Paragraph<PS, SEG, S> restyle(S style) {
          return new Paragraph<>(paragraphStyle, segmentOps, segments, StyleSpans.singleton(style, length()));
      }
docs: Restyles every segment in the paragraph to have the given style.
  
  Note: because Paragraph is immutable, this method returns a new Paragraph.
  The current Paragraph is unchanged.
  
  @param style The new style for each segment in the paragraph.
  @return The new paragraph with the restyled segments.