Group chats can get annoying quickly if the people in them are sending fast shooting texts without hesitation, especially if none of them are of your interest. Fortunately, it's easy to mute notifications for specific message threads. You can even leave a group chat if everyone is using iMessages, but that can make you miss an important message.
There is another option, however, specifically for the Messages application in Mac OS X Yosemite, which alerts you when your name is mentioned in a group conversation. Whether someone uses your first name or your full name, you will receive an alert saying that you have been mentioned, which makes it easier to check the most relevant messages for you, instead of all of them.
How to configure messages to alert you when you are mentioned
On your Mac, open the Messages application, go to the menu bar and click on Preferences. In the General section, check the box next to "Notify me when my name is mentioned."
Now, whenever your name or full name is mentioned in an iMessage, you will receive a notification like the one shown in the following screenshot. You will also hear a notification sound instead of the normal ping you are used to when you receive an iMessage.
If you have an iPhone (running iOS 8) connected to Yosemite through Continuity, you can also receive alerts "mentioned in this chat" for regular SMS messages, not just iMessages.
The next time you see a group chat on your computer, don't complain, Mac OS X will make sure to let you know when it's important.