Library[] (Project project) { if (project == null || project.isDisposed()) return Library.EMPTY_ARRAY; final LibraryTable table = LibraryTablesRegistrar.getInstance().getLibraryTable(project); final List<Library> all = ContainerUtil.findAll(table.getLibraries(), LIB_SEARCH_CONDITION); return all.toArray(Library.EMPTY_ARRAY); }