Add getClosureDependencies function.