code: public final void remove(final int index) {
          AbstractItem removedItem = items.remove(index);
  
          if (removedItem instanceof Item && ((Item) removedItem).getIcon() != null) {
              iconCount--;
          } else if (removedItem instanceof Divider) {
              dividerCount--;
          }
  
          rawItems = null;
          notifyOnDataSetChanged();
      }
docs: Removes the item at a specific index.
  
  @param index
  The index of the item, which should be removed, as an {@link Integer} value