void () { AdditionalLibraryRootsProvider provider = new AdditionalLibraryRootsProvider() { @Override public @NotNull Collection<SyntheticLibrary> getAdditionalProjectLibraries(@NotNull Project project) { ArrayList<SyntheticLibrary> result = new ArrayList<>(); addLibrary(result, libraryRootsNoId, null); addLibrary(result, libraryRootsId1, "ID1"); addLibrary(result, libraryRootsId2, "ID2"); return result; } }; setUp(Collections.singletonList(provider), Collections.emptyList(), Collections.emptyList()); }