@Override
  public void insertString(int offset, @NotNull CharSequence s) {
    assert intersectWithEditable(new TextRange(offset, offset)) != null;
    if (isOneLine()) {
      s = StringUtil.replace(s.toString(), "\n", "");
    }
    myDelegate.insertString(injectedToHost(offset), s);
  }
@Override
  public void insertString(int offset, @NotNull CharSequence s)