void (final Project project, final VirtualFile root, final Collection<? extends FilePath> added, final Collection<? extends FilePath> removed, final List<? super VcsException> exceptions) { if (!removed.isEmpty()) { try { GitFileUtils.deletePaths(project, root, removed, "--ignore-unmatch", "--cached", "-r"); } catch (VcsException ex) { exceptions.add(ex); } } if (!added.isEmpty()) { try { GitFileUtils.addPathsForce(project, root, added); } catch (VcsException ex) { exceptions.add(ex); } } }