void (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; return changed ? doUpdateDiffs(myModel) : EmptyRunnable.getInstance(); } }); }