void (@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) { super.configureModule(module, model, contentEntry); LibraryTable libraryTable = model.getModuleLibraryTable(); Library library = libraryTable.createLibrary("test"); Library.ModifiableModel libraryModel = library.getModifiableModel(); String path = BASE_PATH + "/lib/simple.jar"; VirtualFile libJarLocal = LocalFileSystem.getInstance().findFileByPath(path); VirtualFile jarRoot = JarFileSystem.getInstance().getJarRootForLocalFile(libJarLocal); assertNotNull(jarRoot); libraryModel.addRoot(jarRoot, OrderRootType.CLASSES); libraryModel.addRoot(VfsUtilCore.pathToUrl(BASE_PATH + "/lib/src"), OrderRootType.SOURCES); libraryModel.commit(); }