private function reflectClassForNamedNode(Node\Name $node) : self
    {
        // @TODO use actual `ClassReflector` or `FunctionReflector`?
        if ($this->isAnonymous()) {
            /** @var self $class */
            $class = (new BetterReflection())->classReflector()->reflect($node->toString());
        } else {
            /** @var self $class */
            $class = $this->reflector->reflect($node->toString());
        }

        return $class;
    }