Shouldn't this be detect or find?
We should return the first class that is detected?, right?  Or return the generic one.