private void updateAffected(int index, @NotNull Error error) {
      myAffected.set(index);
      if (error instanceof SwapError) {
        myAffected.set(index + 1);
      }
      else if (error instanceof MissError) {
        myAllAffectedAfter = Math.min(index, myAllAffectedAfter);
      }
    }
private void updateAffected(int index, @NotNull Error error)