in app/com/gu/memsub/subsv2/services/CatalogService.scala [44:49]
def one[P <: CatalogPlan[Product, ChargeList, Status]](plans: List[CatalogZuoraPlan], name: String, frontendId: FrontendId)(implicit p: CatPlanReads[P]): Validation[NonEmptyList[String], P] = {
many(plans.filter(_.frontendId.contains(frontendId)), name).flatMap {
case a if a.size == 1 => Validation.s(a.head)
case e => Validation.failureNel(s"Too many plans! $e")
}
}