class TableLineBuilder {

    public <T extends Enum<T>> TableLineBuilder withEnumCount(
            String statName,
            Map<T, Integer> countByEnum,
            Class<T> clazz) {
        for (T enumValue : clazz.getEnumConstants()) {
            withInt(
                    enumValue.toString() + "_" + statName,
                    countByEnum.getOrDefault(enumValue, 0));
        }
        return this;
    }

}