refactor complex method collect_occurrences_for_selected_year