// and the split modules are dependent on the leftovers
for (int i = 1; i < loadModulesCount; i++) {
modules[i].addDependency(modules[i - 1]);
}
JSModule leftovers = modules[loadModulesCount - 1];
for (int i = loadModulesCount; i < modules.length; i++) {
Preconditions.checkNotNull(modules[i], "Module: ", i);
modules[i].addDependency(leftovers);
}
}