Status firstStatus,
Status... additionalStatuses ) {
EnumSet<Status> stats = EnumSet.of(firstStatus, additionalStatuses);
if (hasProblems()) {
for (Problem problem : this) {
Status status = problem.getStatus();
if (!stats.contains(status)) continue;
Level level = logLevelFor(status);
logger.log(level, problem.getMessage(), problem.getParameters());
}
}