What does this method do? Collect means something in scala, so be careful with that name (it is like a filtering map).

Seems like we add the producer and it's dependencies to the registry. Is that true?

Maybe, addWithDependencies is a good name?