LibraryBridge () { ModuleRootManagerEx moduleRootManager = ModuleRootManagerEx.getInstanceEx(getModule()); ModifiableRootModel model = moduleRootManager.getModifiableModel(); LibraryTable table = model.getModuleLibraryTable(); Library lib = table.createLibrary("lib"); model.commit(); return (LibraryBridge)lib; }