@Override
    protected void onReTarget(@NotNull DocumentEvent e) {
      int offset = intervalStart();
      if (DocumentUtil.isInsideSurrogatePair(getDocument(), offset)) {
        setRange(TextRangeScalarUtil.toScalarRange(offset - 1, offset - 1));
      }
    }
@Override
    protected void onReTarget(@NotNull DocumentEvent e)