void (List<Path> paths, List<File> cpFiles) { for (File file : cpFiles) { if (!isValidClassPathEntry(file)) { continue; } Path path; try { path = file.toPath(); } catch (InvalidPathException e) { LOG.info(e); continue; } paths.add(path); } }