protected function checkPriority($event, $priority)
    {
        if (!is_int($priority)) {
            $message = 'Priority for event "%s" must be an integer, but received: %s';
            $this->addProblem(sprintf($message, $event, $this->exporter->export($priority)));
            return;
        }
    }