Thank you very much this looks like what I am looking for. This is exactly what I want to achieve. However, I need to try it out. If it will work I mark this post as a correct answer.
I know the Environment Analysis finds only immediate dependencies but I want to find all dependencies using a recursion.