public static function enable()
    {
        foreach (self::$validTypes as $type) {
            Field::macro("asFile$type", function (Field $builder) use ($type) {
                return new static($builder->getClassMetadata(), $builder->getName(), $type);
            });
        }
    }