*/
public static DefaultCategoryDataset getBalance(Integer year,
Multimap<Integer, Annotation> yearToAnnotationMultimap,
BookSelection bookSelection, Boolean includePurchasedStocks,
Optional<String> optionalStockLabel) {
Book selectedBook = bookSelection.getSelectedBook();
Double previousYearsTotals = 0.0;
for (Integer currentYear : yearToAnnotationMultimap.keySet()) {
if (currentYear < year) {
for (Annotation currentAnnotation : yearToAnnotationMultimap
.get(currentYear)) {