JavaModuleFixtureBuilder (String libraryName, String @NotNull ... classPath) { for (String path : classPath) { if (!new File(path).exists()) { System.out.println(path + " does not exist"); } } Map<OrderRootType, String[]> map = Collections.singletonMap(OrderRootType.CLASSES, classPath); myLibraries.add(new Lib(libraryName, map)); return this; }