List<Path> (String classpathFilePath) { try { Path file = Paths.get(classpathFilePath); Set<Path> roots = new LinkedHashSet<>(); try (BufferedReader reader = Files.newBufferedReader(file)) { while (reader.ready()) { roots.add(Paths.get(reader.readLine())); } } return new ArrayList<>(roots); } catch (IOException e) { throw new RuntimeException(e); } }