private void scheduleDiffUpdate(final @Nullable Couple<Integer> toSelect) {
    doScheduleUpdate(UPDATE_DIFFS, () -> {
      synchronized (myModel) {
        boolean changed = toSelect == null ? myModel.resetSelection() : myModel.selectRevisions(toSelect.first, toSelect.second);
        changed |= myForceUpdateDiff;
        myForceUpdateDiff = false;
        if (changed) {
          return LocalHistoryCounter.INSTANCE.logLoadDiff(myProject, myModel.getKind(), () -> {
            return doUpdateDiffs(myModel);
          });
        }
        return EmptyRunnable.getInstance();
      }
    });
  }
private void scheduleDiffUpdate(final @Nullable Couple<Integer> toSelect)