@Nullable
  private static TextFilePatch loadFilePatch(@NotNull Project project,
                                             @NotNull Path patchPath,
                                             @NotNull String beforePath,
                                             @Nullable CommitContext commitContext)
    throws IOException, PatchSyntaxException {
    List<TextFilePatch> filePatches = ShelveChangesManager.loadPatches(project, patchPath, commitContext);
    return ContainerUtil.find(filePatches, patch -> beforePath.equals(patch.getBeforeName()));
  }
@Nullable
  private static TextFilePatch loadFilePatch(@NotNull Project project,
                                             @NotNull Path patchPath,
                                             @NotNull String beforePath,
                                             @Nullable CommitContext commitContext)