private boolean ignoreEvent ( CommentAdded event ) { Account account = event . getAccount ( ) ; if ( account == null ) { return false ; } String accountEmail = account . getEmail ( ) ; if ( StringUtils . isEmpty ( accountEmail ) ) { return false ; } Provider provider = event . getProvider ( ) ; if ( provider != null ) { String ignoreEMail = ignoreEMails . get ( provider . getName ( ) ) ; if ( StringUtils . isNotEmpty ( ignoreEMail ) && accountEmail . endsWith ( ignoreEMail ) ) { return true ; } } return false ; }
Checks if the event should be ignored .