void () { ModuleManager moduleManager = ModuleManager.getInstance(myProject); if (moduleManager instanceof ModuleManagerBridgeImpl) { myMutableEntityStorage = MutableEntityStorage.from(WorkspaceModel.getInstance(myProject).getCurrentSnapshot()); myModuleModel = ((ModuleManagerBridgeImpl)moduleManager).getModifiableModel(myMutableEntityStorage); } else { myModuleModel = moduleManager.getModifiableModel(); myMutableEntityStorage = null; } }