private void validRecordsLength(@Nullable List<byte[]> records) {
        if (records == null) {
            return;
        }
        int maxSize = maxRecordsSize;
        if (maxSize <= -1) {
            return;
        }
        int count = 0;
        for (byte[] record : records) {
            count += record.length;
        }
        if (count > maxSize) {
            throw ResponseException.get(ILLEGAL_ARGUMENT,
                    "The total size of records must be less than or equal to "
                            + maxSize);
        }
    }
@param senderDeviceType can be null when it is a system message
turms-service/src/main/java/im/turms/service/domain/message/service/MessageService.java