boolean (@NotNull Project project, @NotNull VirtualFile root, @NotNull ChangedPath change, @NotNull List<? super VcsException> exceptions) { try { if (!isCaseOnlyRename(change)) return false; FilePath beforePath = Objects.requireNonNull(change.beforePath); FilePath afterPath = Objects.requireNonNull(change.afterPath); LOG.debug(String.format("Restoring staged case-only rename after commit: %s", change)); GitLineHandler h = new GitLineHandler(project, root, GitCommand.MV); h.addParameters("-f", beforePath.getPath(), afterPath.getPath()); Git.getInstance().runCommandWithoutCollectingOutput(h).throwOnError(); return true; } catch (VcsException e) { exceptions.add(e); return false; } }