code: public Tuple3<ReadOnlyStyledDocument<PS, SEG, S>, RichTextChange<PS, SEG, S>, MaterializedListModification<Paragraph<PS, SEG, S>>> replace(
              int from, int to, ReadOnlyStyledDocument<PS, SEG, S> replacement) {
          return replace(from, to, x -> replacement);
      }
docs: Replaces the given portion {@code "from..to"} with the given replacement and returns
  <ol>
  <li>
  the updated version of this document that includes the replacement,
  </li>
  <li>
  the {@link RichTextChange} that represents the change from this document to the returned one, and
  </li>
  <li>
  the modification used to update an area's list of paragraphs.
  </li>
  </ol>