add methods for getting messages by annotation type