code: public MultiChangeBuilder<PS, SEG, S> replace(int start, int end, StyledDocument<PS, SEG, S> replacement) {
          return relativeReplace(start, end, ReadOnlyStyledDocument.from(replacement));
      }
docs: Replaces a range of characters with the given rich-text document.