for (String mod : dependingImports) {
ModuleEnvironment env = heap.getModule(mod);
Set<String> todo = new HashSet<String>(env.getImports());
for (String imp : todo) {
if (names.contains(imp)) {
env.unImport(imp);
ModuleEnvironment imported = heap.getModule(imp);
if (imported != null) {
env.addImport(imp, imported);
}
}