</BUG>
protected final DependencyStrategyHelper<C> dependencyStrategyHelper = new DependencyStrategyHelper<>();
protected String name;
public ElementBuilder(String name) {
this.name = name;
<BUG>}
public ElementBuilder<P, C> addAll(C element)
throws DependencyStrategyHelper.InvalidDependencyException {</BUG>
dependencyStrategyHelper.addElement(element);
return this;

package com.mesosphere.sdk.scheduler.plan;
import com.mesosphere.sdk.scheduler.plan.strategy.DependencyStrategyHelper;
import com.mesosphere.sdk.scheduler.plan.strategy.Strategy;
import java.util.Collection;
public abstract class ElementBuilder<P extends ParentElement<? extends Element>, C extends Element> {
protected final DependencyStrategyHelper<C> dependencyStrategyHelper = new DependencyStrategyHelper<>();
protected String name;
public ElementBuilder(String name) {
this.name = name;
}
public ElementBuilder<P, C> add(C element) throws DependencyStrategyHelper.InvalidDependencyException {
dependencyStrategyHelper.addElement(element);
return this;
