I was hit by a nearly-full can of Dr Pepper, which struck the bill of my cap, fortunately, while riding on the grass well off the pavement, by a farm-to-market road in SE Texas. (Why no helmet? This was the 1970's, and I did not yet know cycling helmets existed.) I did not bother reporting it, because the speeding vehicle was too far away for me to see a plate or even exact model by the time I recovered enough to take a look.
Objects thrown from vehicles that cause injury are prosecuted around here. Minor injuries merit a Class A misdemeanor, which is up to one year in jail, plus fine. If a bone is broken, or other serious injury occurs, it is a felony. Yelling a statement that indicates a hate crime will bump it up one degree. A thrown cookie, that left a welt on a pedestrian, resulted in a third-degree felony that way, a while back, in a Houston PD case, because the bad guy yelled an anti-gay statement. Bicyclists are not a "protected" category, so there is no upgrading of the charge simply because the victim is riding a bike.
If I managed to catch a motorist or passenger who had thrown an object at a cyclist, I would treat it like any other assault or attempted assault. I would have to review the case with the D.A.'s office, of course, but I do not anticipate any lack of cooperation.
__________________
Have Colt, will travel...