void (final File baseDir, final List<? super File> files, final String locationPath) { if (locationPath != null) { File file = new File(locationPath); if (file.isAbsolute()) { files.add(file); } else { files.add(new File(baseDir, locationPath)); } } }