private static void fillSheetContent(XSSFSheet sheet, List<String> heads, List<Map<String, String>> contents,
            List<XSSFCellStyle> contentStyles) {
        if (CollectionUtils.isEmpty(contents)) {
            return;
        }
        int rowSize = contents.size();
        for (int lineId = 0; lineId < rowSize; lineId++) {
            Map<String, String> line = contents.get(lineId);
            Row row = sheet.createRow(lineId + 1);
            int headSize = heads.size();
            for (int colId = 0; colId < headSize; colId++) {
                String title = heads.get(colId);
                String originValue = line.get(title);
                String value = StringUtils.isNotBlank(originValue) ? originValue : "";
                Cell cell = row.createCell(colId);
                cell.setCellValue(value);
                cell.setCellStyle(contentStyles.get(colId));
            }
        }
    }
Fills the content rows of a given sheet with the provided content maps and headers.
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/tool/excel/ExcelTool.java