List<String> (JpsOrderRootType rootType) { List<String> urls = new ArrayList<>(); for (JpsLibraryRoot root : getRoots(rootType)) { switch (root.getInclusionOptions()) { case ROOT_ITSELF: urls.add(root.getUrl()); break; case ARCHIVES_UNDER_ROOT: collectArchives(JpsPathUtil.urlToFile(root.getUrl()), false, urls); break; case ARCHIVES_UNDER_ROOT_RECURSIVELY: collectArchives(JpsPathUtil.urlToFile(root.getUrl()), true, urls); break; } } return urls; }