private Collection<DependencyNode<T>> findDependencies(String sourceId, String patternList)
{
String sourceModuleId = IOCUtilities.extractModuleId(sourceId);
IdMatcher matcher = buildMatcherForPattern(sourceModuleId, 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;
}