I would usually get a max with `collection.filter(filterCondition).maxBy(_.value)`.