void (File srcFile, File form, Map<File, Collection<File>> container) { Collection<File> forms = container.get(srcFile); if (forms == null) { forms = new ArrayList<>(); container.put(srcFile, forms); } forms.add(form); }