if (child != null) {
parent.add(child);
}
}
@Nullable
<BUG>private MPSTreeNode buildDependency(IModule from, DependencyPathTree.DepType type, String role, Set<IModule> dependency, Set<Language> usedlangauge, Set<DependencyPathTree.Dep> visited) {

if (SetSequence.fromSet(dependency).contains(from)) {
return new DependencyTreeLeafNode(from, role, null);</BUG>
}

if (child != null) {
parent.add(child);
}
}
@Nullable
private MPSTreeNode buildDependency(IModule from, DependencyPathTree.DepType type, String role, Set<IModule> dependency, Set<IModule> usedlangauge, Set<DependencyPathTree.Dep> visited) {
if ((type == DependencyPathTree.DepType.D || type == DependencyPathTree.DepType.R) && SetSequence.fromSet(dependency).contains(from)) {
return new DependencyTreeLeafNode(from, role, null);
}
if (type == DependencyPathTree.DepType.UL && SetSequence.fromSet(usedlangauge).contains(from)) {
return new DependencyTreeLeafNode(from, role, null);
}
