docs: public boolean hasStickyHeader(View itemView, int orientation, int position) {
      int offset, margin;
      mDimensionCalculator.initMargins(mTempRect1, itemView);
      if (orientation == LinearLayout.VERTICAL) {
        offset = itemView.getTop();
        margin = mTempRect1.top;
      } else {
        offset = itemView.getLeft();
        margin = mTempRect1.left;
      }
  
      return offset <= margin && mAdapter.getHeaderId(position) >= 0;
    }