class ReportLocations {

    public FileLocations toFileLocations(final Report report) {
        FileLocations fileLocations = new FileLocations();
        report.stream().forEach(i -> fileLocations.addLine(i.getFileName(), i.getLineStart()));
        return fileLocations;
    }

}