protected void addDependency(DependencyKind dk,Node depToAdd){
  Set<Node> depsByKind=deps.get(dk);
  if (depsByKind == null) {
    depsByKind=new LinkedHashSet<Node>();
    deps.put(dk,depsByKind);
  }
  depsByKind.add(depToAdd);
}

protected void addDependency ( DependencyKind dk , Node depToAdd ) { Set < Node > depsByKind = deps . get ( dk ) ; if ( depsByKind == null ) { depsByKind = new LinkedHashSet < Node > ( ) ; deps . put ( dk , depsByKind ) ; } depsByKind . add ( depToAdd ) ; }
adds dependency with given kind .
