public static function addRelation($annotationName, $relationClass)
    {
        if (!is_subclass_of($relationClass, RelationInterface::class)) {
            throw new InvalidArgumentException(
                "'{$relationClass}' is not a RelationInterface class."
            );
        }
        static::$knownRelations[$annotationName] = $relationClass;
    }