public static <T> ClassMeta<T> of(Class<T> clazz)
                throws InstantiationException, IllegalAccessException, NoSuchMethodException {
            ClassMeta<T> meta = new ClassMeta<>();
            meta.setTClass(clazz);
            ExcelEntity excelEntity = clazz.getAnnotation(ExcelEntity.class);
            if (excelEntity != null) {
                meta.name = excelEntity.name();
            }

            Field[] fields = clazz.getDeclaredFields();
            for (Field field : fields) {
                ExcelField excelField = field.getAnnotation(ExcelField.class);
                if (excelField != null) {
                    Class<? extends ExcelCellValidator> validatorClass = excelField.validator();
                    ExcelCellDataTransfer excelCellDataTransfer = excelField.x2oTransfer();
                    ExcelCellValidator excelCellValidator = null;
                    if (validatorClass != ExcelCellValidator.class) {
                        excelCellValidator = validatorClass.newInstance();
                    }
                    meta.addField(field.getName(), excelField.name(), field, field.getType(),
                            excelCellDataTransfer, excelCellValidator);
                }
            }

            return meta;
        }
Create a ClassMeta object from a given template class.
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/tool/excel/ExcelTool.java