long dependencyCount = dependencyTask.getDependencyList(forward).size();
long dep = newBegin; // by default (if no preds for example)
if (dependencyCount > 0) {
boolean useSooner = !dependencyTask.isWbsParent() && dependencyTask.hasDuration();
dep = dependency.calcDependencyDate(forward,newBegin,newEnd,useSooner); // calculate it and store off value
if (dependencyCount > 1) // can't just set date directly because more than one
dep = needsCalculation; // it will need to be calculated later
}
dependencyTaskSchedule.setDependencyDate(dep);
dependencyTask.setCalculationStateCount(context.stateCount); // need to process successor(predecessor) later on in pass