class JiraSCMListener extends SCMListener {

    static Collection<String> getIssueKeys(ChangeLogSet<?> changelog, Pattern issuePattern) {
        Set<String> issueKeys = new HashSet<>();
        for (ChangeLogSet.Entry entry : changelog) {
            issueKeys.addAll(BlueJiraIssue.findIssueKeys(entry.getMsg(), issuePattern));
        }
        return issueKeys;
    }

}