private FileHashSnapshot fileSnapshot(FileTreeElement fileDetails) { return new FileHashSnapshot(hasher.hash(fileDetails), fileDetails.getLastModified()); }
private FileInfo snapshot(FileTreeElement file) { return snapshot(file.getFile(), file.getSize(), file.getLastModified()); }