void () { if (myVerboseLevel == 3) { reportMessage(3, "Old warnings:"); ArrayList<Map.Entry<Pair<String, Integer>, Collection<String>>> entries = new ArrayList<>(originalWarnings.entrySet()); reportMessage(3, "total size: " + entries.size()); entries.sort(Comparator.comparing((Map.Entry<Pair<String, Integer>, Collection<String>> o) -> o.getKey().first) .thenComparingInt(o -> o.getKey().second)); for (Map.Entry<Pair<String, Integer>, Collection<String>> entry : entries) { reportMessage(3, entry.getKey().first + ":" + (entry.getKey().second + 1)); for (String value : entry.getValue()) { reportMessage(3, "\t\t" + value); } } } }