protected final void replace(int startOffset, int endOffset, @NotNull String text) {
    replace(new TextRange(startOffset, endOffset), text);
  }
protected final void replace(int startOffset, int endOffset, @NotNull String text)