public static int getMoveOffsetAfterDeletion(@NotNull DocumentEvent e) {
    final int moveOffset = e.getMoveOffset();
    if (moveOffset > e.getOffset()) {
      return moveOffset - e.getOldLength();
    }
    return moveOffset;
  }
public static int getMoveOffsetAfterDeletion(@NotNull DocumentEvent e)