code: public void collapse(final int position) {
          long itemId = getItemId(position);
          if (!mExpandedIds.contains(itemId)) {
              return;
          }
  
          toggle(position);
      }
docs: Collapse the view at given position. Will do nothing if the view is already collapsed.
  
  @param position the position to collapse.