public static function ofObjectType($fullName)
    {
        $result = self::of($fullName);
        if (!($result instanceof ObjectType))
            throw new InvalidArgumentException("Argument 'fullName' does not describe a class or interface.");
        return $result;
    }