void () { JpsLibrary a = myProject.addLibrary("a", JpsJavaLibraryType.INSTANCE); JpsLibraryCollection collection = myProject.getLibraryCollection(); assertSameElements(collection.getLibraries(), a); assertSameElements(ContainerUtil.newArrayList(collection.getLibraries(JpsJavaLibraryType.INSTANCE)), a); assertEmpty(ContainerUtil.newArrayList(collection.getLibraries(JpsJavaSdkType.INSTANCE))); }