public static void configureVcsMappings(@NotNull Project project, @NotNull VirtualFile root) {
    ProjectLevelVcsManager manager = ProjectLevelVcsManager.getInstance(project);
    manager.setDirectoryMappings(VcsUtil.addMapping(manager.getDirectoryMappings(), root.getPath(), GitVcs.NAME));
  }
public static void configureVcsMappings(@NotNull Project project, @NotNull VirtualFile root)