/**
  * @param Segment $segment
  *
  * @return self
  */
 public static function missingId($segment)
 {
     return new self('Missing segment id for ' . serialize($segment->getCode()));
 }