void (final FileGroup group, final String file, final DuplicateLevel duplicateLevel, final String vcsName) { if (duplicateLevel.searchPreviousContainment(group.getId())) { final FileGroup oldGroup = myFileIdx.get(file); if (oldGroup != null) { if (duplicateLevel.doesExistingWin(group.getId(), oldGroup.getId())) { return; } oldGroup.remove(file); } } group.add(file, vcsName, null); myFileIdx.put(file, group); }