List<File> (ClientLibraryDescription description) { List<File> files = myFiles.get(description.getId()); if (files == null) { return Collections.emptyList(); } List<File> existentFiles = new ArrayList<>(); for (File file : files) { if (file.exists()) { existentFiles.add(file); } } return existentFiles; }