if (fileMap == null) {
fileMap = Maps.newHashMap();
lineMap.put(warning.line, fileMap);
}
String fileName = warning.file != null ? warning.file.getName() : "<unknown>";
Warning canonical = fileMap.get(fileName);
if (canonical == null) {
canonical = warning;
fileMap.put(fileName, canonical);
canonical.variants = Sets.newHashSet();
canonical.gradleProject = project;