Adding method filterNotificationTypes()