public boolean matchNotification(StageConfigIdentifier stageIdentifier, StageEvent event,
                                     MaterialRevisions materialRevisions) {
        if (!shouldSendEmailToMe()) {
            return false;
        }
        for (NotificationFilter filter : notificationFilters) {
            if (filter.matchStage(stageIdentifier, event)) {
                if (filter.isAppliedOnAllCheckins() || matchModification(materialRevisions)) {
                    return true;
                }
            }
        }
        return false;
    }
@Test
    void shouldReturnFalseWhenEmailIsEmpty() {
        assertThat(new User("UserName", new String[]{"README"}, null, true).matchNotification(null, StageEvent.All, null)).isFalse();
        assertThat(new User("UserName", new String[]{"README"}, "", true).matchNotification(null, StageEvent.All, null)).isFalse();
    }