void (final MockLocation location) { final int line = location.lineNumber(); List<Location> list = myLine2Locations.get(line); if (list == null) { list = new ArrayList<>(); myLine2Locations.put(line, list); } list.add(location); }