Modular Dependency Analysis in Heterogeneous Software Systems