private void addMappings(Collection<? extends VcsRootError> importantUnregisteredRoots, boolean silently) {
    List<VcsDirectoryMapping> mappings = myVcsManager.getDirectoryMappings();
    for (VcsRootError root : importantUnregisteredRoots) {
      mappings = VcsUtil.addMapping(mappings, root.getMapping());
    }
    if (silently) {
      myVcsManager.setAutoDirectoryMappings(mappings);
    }
    else {
      myVcsManager.setDirectoryMappings(mappings);
    }
  }
private void addMappings(Collection<? extends VcsRootError> importantUnregisteredRoots, boolean silently)