@Override
  public void replaceText(@NotNull CharSequence chars, long newModificationStamp) {
    replaceString(0, getTextLength(), 0, chars, newModificationStamp, true); //TODO: optimization!!!
    clearLineModificationFlags();
  }
@Override
  public void replaceText(@NotNull CharSequence chars, long newModificationStamp)