@Override
    public int processTail(Editor editor, int tailOffset) {
      Document document = editor.getDocument();
      document.insertString(tailOffset, ARROW);
      return moveCaret(editor, tailOffset, ARROW.length());
    }
@Override
    public int processTail(Editor editor, int tailOffset)