for (AbstractModule m : getAllModules()) {
List<StubPath> stubModels = m.areJavaStubsEnabled() ? m.getAllStubPaths() : m.getStubPaths();
for (StubPath sp : stubModels) {
BaseStubModelRootManager manager = createStubManager(m, sp);
sp.setModelRootManager(manager);
<BUG>if (manager == null) continue;
manager.updateModels(sp.getPath(), "", m);
myAllStubPaths.add(m, sp);</BUG>
}
}

for (AbstractModule m : getAllModules()) {
for (SModelDescriptor sm : SModelRepository.getInstance().getModelDescriptors(m)) {
if (!(sm instanceof BaseStubModelDescriptor)) continue;
if (!StubReloadManager.getInstance().needsFullReload(((BaseStubModelDescriptor) sm))) continue;
if (SModelRepository.getInstance().getOwners(sm).size() == 1) {
SModelRepository.getInstance().removeModelDescriptor(sm);
} else {
SModelRepository.getInstance().unRegisterModelDescriptor(sm, m);
