private function isRelated($name, ValidationException $exception) { return $exception->getId() === $name || $exception->getName() === $name; }