private function checkResolver(string $checkedMethod) { if (null === $this->resolver) { throw ResolverNotFoundExceptionFactory::createUnexpectedCall($checkedMethod); } }