List<File> (Collection<? extends File> libraries) { myFiles = new ArrayList<>(); for (File library : libraries) { if (library.exists()) { addFile(library); if (library.isDirectory()) { addLibraries(library); } } } return myFiles; }