boolean (LibraryPackagingElement element, Library library, String name) { if (!element.getLibraryName().equals(name)) { return false; } final LibraryTable table = library.getTable(); if (table != null) { return table.getTableLevel().equals(element.getLevel()); } return element.getLevel().equals(LibraryTableImplUtil.MODULE_LEVEL); }