ModifiableRootModel () { if (myModifiableRootModel == null) { final Module module = getModule(); if (module != null) { MutableEntityStorage builder = myModulesProvider.getWorkspaceEntityStorageBuilder(); myModifiableRootModel = ModuleRootManagerEx.getInstanceEx(module).getModifiableModelForMultiCommit(new UIRootConfigurationAccessor(myProject, builder)); } } return myModifiableRootModel; }