class CompilerClassloaderUtils {

    public static Optional<ClassLoader> createClassloaderFromStringDeps(List<String> depsProject) {
        List<URL> deps = readAllDepsAsUrls(depsProject);
        if (deps.isEmpty()) {
            return Optional.empty();
        } else {
            URLClassLoader urlClassLoader = new URLClassLoader(deps.toArray(new URL[deps.size()]));
            return Optional.of(urlClassLoader);
        }
    }

    private  CompilerClassloaderUtils();

}