code: private OnItemLongClickListener createItemLongClickListener() {
          return new OnItemLongClickListener() {
  
              @Override
              public boolean onItemLongClick(final AdapterView<?> parent, final View view,
                                             final int position, final long id) {
  
                  if (!rootView.isDragging() && !rootView.isAnimationRunning() &&
                          itemLongClickListener != null) {
                      int index = position;
  
                      if (adapter.containsDividers()) {
                          for (int i = position; i >= 0; i--) {
                              if (adapter.getItem(i) == null ||
                                      (adapter.getItem(i) instanceof Divider &&
                                              i % adapter.getColumnCount() > 0)) {
                                  index--;
                              }
                          }
                      }
  
                      return itemLongClickListener
                              .onItemLongClick(parent, view, index, getId(position));
                  }
  
                  return false;
              }
  
          };
      }
docs: Creates and returns a listener, which allows to observe when the items of a bottom sheet have
  been long-clicked.
  
  @return The listener, which has been created, as an instance of the type {qlink
  OnItemLongClickListener}