Can I get a List of all the case objects that implement a sealed trait? For example.,
I have a sealed trait as below:
sealed trait MyTrait
case object A extends MyTrait
case object B extends MyTrait
I want to now have something that would give me the List of all the objects that implement this sealed trait?