void (String... expectedNames) { List<String> actualNames = new ArrayList<>(); for (Library each : LibraryTablesRegistrar.getInstance().getLibraryTable(myProject).getLibraries()) { String name = each.getName(); actualNames.add(name == null ? "<unnamed>" : name); } assertUnorderedElementsAreEqual(actualNames, expectedNames); }