private static List<Pair<Field, ExcelField>> extractFieldMetas(Field[] fields) {
        return Arrays.stream(fields)
                .peek(field -> field.setAccessible(true))
                .map(field -> Pair.of(field, field.getAnnotation(ExcelField.class)))
                .filter(fieldMeta -> fieldMeta.getRight() != null)
                .collect(Collectors.toList());
    }
Writes the given content to an Excel document.

@param contents the list of contents to write
@param out      the output stream to write to
@throws IOException if there is an error writing to the output stream
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/tool/excel/ExcelTool.java