private void printGroupedHistories(LsOperationResult operationResult, int longestSize, int longestVersion) {
Iterator<FileVersion> fileVersionIterator = operationResult.getFileTree().values().iterator();
while (fileVersionIterator.hasNext()) {
FileVersion fileVersion = fileVersionIterator.next();
PartialFileHistory fileHistory = operationResult.getFileVersions().get(fileVersion.getFileHistoryId());
out.printf("File %s, %s\n", formatObjectId(fileHistory.getFileHistoryId()), fileVersion.getPath());
for (FileVersion fileVersionInHistory : fileHistory.getFileVersions().values()) {
if (fileVersionInHistory.equals(fileVersion)) {
out.print(" * ");
}
else {
out.print(" ");