code: public final int indexOf(final int id) {
          Condition.INSTANCE.ensureAtLeast(id, 0, "The id must be at least 0");
  
          for (int i = 0; i < getItemCount(); i++) {
              AbstractItem item = adapter.getItem(i);
  
              if (item.getId() == id) {
                  return i;
              }
          }
  
          return -1;
      }
docs: Returns the index of the item, which corresponds to a specific id.
  
  @param id
  The id of the item, whose index should be returned, as an {@link Integer} value. The
  id must be at least 0
  @return The index of the item, which corresponds to the given id, or -1, if no item, which
  corresponds to the given id, is contained by the bottom sheet