}
}
private Collection<DependencyNode<T>> findDependencies(String sourceId, String patternList)
{
IdMatcher matcher = buildMatcherForPattern(patternList);
Collection<DependencyNode<T>> result = newList();
for (String id : dependencyNodesById.keySet())
{
if (sourceId.equals(id)) continue;
if (matcher.matches(id)) result.add(dependencyNodesById.get(id));
}
return result;
}