void () { doTestLibraryExcluding(libRootPair -> { Module module = ProjectStructureDslKt.createJavaModule(projectModelRule, "module", moduleContentBuilder -> { return Unit.INSTANCE; }); LibraryEx library = projectModelRule.addProjectLevelLibrary("libName", setup -> { setup.addRoot(libRootPair.getFirst(), OrderRootType.CLASSES); setup.addRoot(libRootPair.getSecond(), OrderRootType.SOURCES); return Unit.INSTANCE; }); ModuleRootModificationUtil.addDependency(module, library); }); }