private Map < String , String > getEmails ( Map < String , String > emails ) { if ( emails == null || emails . size ( ) == 0 ) { return null ; } Map < String , String > out = new HashMap <> ( ) ; for ( String email : emails . keySet ( ) ) { if ( excluded ( email ) ) { continue ; } out . put ( email , emails . get ( email ) ) ; } return out ; }
Filters out excluded emails if any