class Console {

    public void log(Log logger, List<Entry<Class<?>, String>> messages) {
        if (messages.isEmpty()) {
            return;
        }
        
        logger.info("-------------------------------------------------------------");
        consumer.accept(logger, "RESOLUTION " + header + ":");
        logger.info("-------------------------------------------------------------");
        for (var message : messages) {
            if (message.getKey() != null) {
                consumer.accept(logger, message.getKey().getName() + ": " + message.getValue());
                
            } else {
                consumer.accept(logger, message.getValue());
            }
        }
        logger.info(messages.size() + " " + (messages.size() == 1 ? count : count + "s"));
        logger.info("-------------------------------------------------------------");
    }

      Console(BiConsumer<Log, String> consumer, String header, String count);

}