class CompilerClassloaderUtils {

    public static List<String> readItemsFromClasspathString(Set<String> depsModules) {

        Set<String> items = new HashSet<>();
        Iterator<String> iter = depsModules.iterator();
        while (iter.hasNext()) {
            StringTokenizer token = new StringTokenizer(iter.next());
            while (token.hasMoreElements()) {
                String item = token.nextToken(":");
                if (item.endsWith(CommonConstants.JAVA_ARCHIVE_RESOURCE_EXT)) {
                    StringBuilder sb = new StringBuilder(CommonConstants.FILE).append(item);
                    items.add(sb.toString());
                }
            }
        }
        return new ArrayList<>(items);
    }

    private  CompilerClassloaderUtils();

}