Processor { public static ClassLoader loader(List<String> classpaths) { return URLClassLoader.newInstance(classpaths.stream().map(classpath -> { try { return new File(classpath).toURI().toURL(); } catch (MalformedURLException e) { throw new UncheckedIOException(e); } }).toArray(URL[]::new), Processor.class.getClassLoader() ); } Processor(Environment<T> environment, PluginParser<T> parser);  Processor(Environment<T> environment, List<Parser<T>> parsers); static ClassLoader loader(List<String> classpaths); void run(); Set<Class<? extends Annotation>> annotations();  }
@Test void loader() throws MalformedURLException { var loader = Processor.loader(List.of("")); assertTrue(loader instanceof URLClassLoader); }