private @Nullable ApplyPatchStatus actualApply(@NotNull List<PatchAndFile> patches,
                                                 @Nullable CommitContext commitContext) {
    ApplyPatchContext context = new ApplyPatchContext(myBaseDirectory, 0, true, true);
    try {
      return applyList(patches, context, commitContext);
    }
    catch (IOException e) {
      showError(myProject, e.getMessage());
      return ApplyPatchStatus.ABORT;
    }
  }
private @Nullable ApplyPatchStatus actualApply(@NotNull List<PatchAndFile> patches,
                                                 @Nullable CommitContext commitContext)