public static FieldSyntaxVersion fromConfig(AbstractConfig config) {
        final String fieldSyntaxVersion = config.getString(FIELD_SYNTAX_VERSION_CONFIG);
        try {
            return FieldSyntaxVersion.valueOf(fieldSyntaxVersion.toUpperCase(Locale.ROOT));
        } catch (IllegalArgumentException e) {
            throw new ConfigException(FIELD_SYNTAX_VERSION_CONFIG, fieldSyntaxVersion, "Unrecognized field syntax version");
        }
    }
Gather version from config values.

@param config including value for field syntax version configuration
@return field syntax version
@throws ConfigException if fails to collect version, e.g. wrong value
connect/transforms/src/main/java/org/apache/kafka/connect/transforms/field/FieldSyntaxVersion.java