public static <T> void initializeSerializationSchema(
            SerializationSchema<T> serializationSchema,
            RuntimeContext runtimeContext,
            Map<String, String> tags) throws Exception {
        FormatMetricGroup formatMetricGroup = new FormatMetricGroup(
                runtimeContext.getMetricGroup(),
                FormatMetricGroup.FORMAT_GROUP_NAME,
                false,
                tags);

        serializationSchema.open(
                RuntimeContextInitializationContextAdapters.serializationAdapter(runtimeContext,
                        metricGroup -> formatMetricGroup));
    }
Check whether there are duplicated field names. Throws an {@link IllegalArgumentException}
with the duplicated field names if any exist.

@param fieldNames the field names to be checked.
inlong-sort/sort-formats/format-rowdata/format-rowdata-base/src/main/java/org/apache/inlong/sort/formats/util/FormatUtils.java