public void setAutoDirectoryMapping(String path, String activeVcsName) {
   final List<VirtualFile> defaultRoots = myMappings.getDefaultRoots();
   if (defaultRoots.size() == 1 && StringUtil.isEmpty(myMappings.haveDefaultMapping())) {
     myMappings.removeDirectoryMapping(new VcsDirectoryMapping("", ""));
   }
   myMappings.setMapping(path, activeVcsName);
 }
 @Override
 public void setDirectoryMapping(final String path, final String activeVcsName) {
   if (myMappingsLoaded)
     return; // ignore per-module VCS settings if the mapping table was loaded from .ipr
   myHaveLegacyVcsConfiguration = true;
   myMappings.setMapping(FileUtil.toSystemIndependentName(path), activeVcsName);
 }