private void resetToFallbackStateOnError(boolean applySomehow) {
    myHadAlreadyAppliedMet = false;
    myTransformations.clear();

    myAppliedInfo.clear();
    myNotExact.clear();
    for (PatchHunk hunk : myHunks) {
      List<SplitHunk> splitHunks = SplitHunk.read(hunk);
      myNotExact.addAll(splitHunks);

      for (SplitHunk splitHunk : splitHunks) {
        processAppliedInfoForUnApplied(splitHunk);
      }
    }

    if (applySomehow) {
      myNotBound.addAll(myNotExact);
      myNotBound.sort(HunksComparator.getInstance());
      myNotExact.clear();
    }
  }
private void resetToFallbackStateOnError(boolean applySomehow)