@NonNull static TypeCache newInstance(Iterable<? extends URL> bootClassPath) { Archive ctSym = null; final CachingArchiveProvider ap = CachingArchiveProvider.getDefault(); for (URL root : bootClassPath) { if (ap.hasCtSym(root)) { ctSym = ap.getArchive(root, true); break; } } if (ctSym == null) { throw new IllegalArgumentException( String.format( "No profile info for boot classpath: %s", //NOI18N bootClassPath)); } return new TypeCache(ctSym); }