Library[] () { if (myRootModel != null) { return myRootModel.getModuleLibraryTable().getLibraries(); } List<Library> libraries = OrderEntryUtil.getModuleLibraries(ModuleRootManager.getInstance(myModule)); return libraries.toArray(Library.EMPTY_ARRAY); }