code: function getCurrentList(opts: Options, value: Value, block?: Block): ?Block {
      const item = getCurrentItem(opts, value, block);
  
      if (!item) {
          return null;
      }
  
      return getListForItem(opts, value, item);
  }
docs: Return the parent list block, from current selection or from a node (paragraph in a list item).