Entity whose possible types differ in the FK

I have one entity called "Groups".

"Groups" can be of different types and the difference between each type is the FK.

For instance, if a "Group" is of type "Event Group", then it uses eventID; if it’s of type "Institution", then it uses institutionID.

What’s the proper way to model this?