docs: public void setSharedSlot(SharedSlot newSlot) {
  		checkNotNull(newSlot);
  
  		if (this.sharedSlot == null) {
  			this.sharedSlot = newSlot;
  		}
  		else if (newSlot != this.sharedSlot){
  			if (lockedLocation != null && !Objects.equals(lockedLocation, newSlot.getTaskManagerLocation())) {
  				throw new IllegalArgumentException(
  						"Cannot assign different location to a constraint whose location is locked.");
  			}
  			if (this.sharedSlot.isAlive()) {
  				this.sharedSlot.releaseSlot(new FlinkException("Setting new shared slot for co-location constraint."));
  			}
  
  			this.sharedSlot = newSlot;
  		}
  	}