formators.forEach(f => {
        const isValid = stringEnumValues(FormatTypes).includes(f.name);

        if (!isValid) {
            throw new Error(