private void createFileInfo(Set<FileInfo> resolvedFiles, List<UnreadableFile> unreadable,
FileInfo fileInfo, File sourceFile, File basePath) {
if (!sourceFile.canRead()) {
unreadable.add(
new UnreadableFile(fileInfo.getFilePath(), sourceFile.getAbsolutePath()));
} else {
String absolutePath = resolveRelativePathReferences(sourceFile.getAbsolutePath());
String displayPath = sanitizer.sanitize(absolutePath, basePath);
File resolvedFile = new File(absolutePath);