ModifiableModuleModel () { return ReadAction.compute(() -> { ModuleManager moduleManager = ModuleManager.getInstance(myProject); ModifiableModuleModel modifiableModel = ((ModuleManagerBridgeImpl)moduleManager).getModifiableModel(getActualStorageBuilder()); Module[] modules = modifiableModel.getModules(); for (Module module : modules) { setIdeModelsProviderForModule(module); } return modifiableModel; }); }