[MODULES-158] Resource discovery part 2: Module-level imported resource iteration