protected boolean isEnding(@Nullable TextRange rangeInHost) {
    if (rangeInHost == null) return true;
    TextRange lastItem = ContainerUtil.getLastItem(getContentRanges());
    if (lastItem == null) return false;
    return rangeInHost.getEndOffset() == lastItem.getEndOffset();
  }
protected boolean isEnding(@Nullable TextRange rangeInHost)