code: private Set<AllocationID> computeAllPriorAllocationIdsIfRequiredByScheduling() {
  		// This is a temporary optimization to avoid computing all previous allocations if not required
  		// This can go away when we progress with the implementation of the Scheduler.
  		if (slotProvider instanceof Scheduler && ((Scheduler) slotProvider).requiresPreviousExecutionGraphAllocations()) {
  			return computeAllPriorAllocationIds();
  		} else {
  			return Collections.emptySet();
  		}
  	}
docs: Returns the result of {@link #computeAllPriorAllocationIds()}, but only if the scheduling really requires it.
  Otherwise this method simply returns an empty set.