/** * @return bool */ private function isRelated($name, RuleException $exception) { return $exception->getId() === $name || $exception->getName() === $name; }