code: public static function skip(ItemPipelineEvent $event, $reason = '')
      {
          $itemSkip = new ItemSkip();
          $itemSkip->setReason($reason);
          $event->setItemSkip($itemSkip);
          $event->stopPropagation();
      }
docs: Skips item, marks event as skipped with a reason.
  
  @param ItemPipelineEvent $event
  @param string            $reason