Scanner that finds subclasses for a sealed trait