code: public static function fromQuery(QueryInterface $query)
      {
          $name = substr(strrchr(get_class($query), '\\'), 1);
  
          $message = 'No matching query handler found: ' . $name;
  
          return new self($message);
      }
docs: @param QueryInterface $query
  
  @return self