private void addPatchAndResetSettings(@Nullable FilePatch patch) {
      if (patch != null) {
        myPatches.add(patch);
      }
      myGitDiffFormat = false;
    }
private void addPatchAndResetSettings(@Nullable FilePatch patch)