if (block.preAssignment != null) block.preAssignment.setEndTime (block.preWrapup); if (block.postAssignment != null) block.postAssignment.setStartTime (block.postSetup);
  private void removeAssignment (Task task, Resource resource) {    task.setAssignment (null);    resource.removeAssignment (task.getKey(),                               ! (ignoringTime || multitask || grouped));  }