Set<File> (@NotNull VirtualFile root, @NotNull List<? extends FilePath> files, @NotNull Map<FilePath, MovedFileInfo> filesToMove) { Set<File> toRefresh = new HashSet<>(); for (FilePath file : files) { MovedFileInfo info = filesToMove.get(file); GitLineHandler h = new GitLineHandler(myProject, root, GitCommand.MV); h.addParameters("-f"); h.addRelativePaths(info.getOldPath(), info.getNewPath()); Git.getInstance().runCommand(h); toRefresh.add(new File(info.myOldPath)); toRefresh.add(new File(info.myNewPath)); } return toRefresh; }