void (@NotNull Project project, @NotNull VirtualFile root, @NotNull String path) { GitUtil.refreshVfsInRoot(root); ProjectLevelVcsManager manager = ProjectLevelVcsManager.getInstance(project); manager.setDirectoryMappings(VcsUtil.addMapping(manager.getDirectoryMappings(), path, GitVcs.NAME)); VcsDirtyScopeManager.getInstance(project).dirDirtyRecursively(root); }