void () { Ref<LibraryEx> jsTest = new Ref<>(); OrderEnumerator.orderEntries(myProject).forEachLibrary((library) -> { if (library.getName().contains("kotlin-test-js")) { jsTest.set((LibraryEx) library); return false; } return true; }); LibraryEffectiveKindProvider effectiveKindProvider = myProject.getService(LibraryEffectiveKindProvider.class); assertEquals(RepositoryLibraryType.REPOSITORY_LIBRARY_KIND, jsTest.get().getKind()); assertEquals(KotlinJavaScriptLibraryKind.INSTANCE, effectiveKindProvider.getEffectiveKind(jsTest.get())); }