void (@Nullable Project project, @NotNull Path path, @NotNull List<? extends FilePatch> remainingPatches, @Nullable CommitContext commitContext) { try (BufferedWriter writer = Files.newBufferedWriter(path)) { UnifiedDiffWriter.write(project, remainingPatches, writer, "\n", commitContext); } catch (IOException e) { LOG.error(e); } }