for (ProjectInfo.Kind kind: ProjectInfo.Kind.values()) {
infoMap.put(kind, new LinkedList<String>());
}
Kind mostImportantKind = Kind.INFO;
for (ProjectInfo info: infos) {
for (ProjectInfo.Entry entry: info.getEntries()) {
Kind kind = entry.getKind();
if (mostImportantKind.getImportance() < kind.getImportance()) {
mostImportantKind = kind;
}
infoMap.get(kind).add(entry.getInfo());
}
}