private void mapLastIssues(Collection<DefaultIssue> newIssues, Collection<IssueDto> lastIssues, IssueTrackingResult result) {
for (IssueDto lastIssue : lastIssues) {
result.addUnmatched(lastIssue);
}
for (DefaultIssue newIssue : newIssues) {
<BUG>mapIssue(newIssue, findLastIssueWithSameKey(newIssue, result.unmatchedForRule(newIssue.ruleKey())), result);
}</BUG>
for (DefaultIssue newIssue : newIssues) {
if (isNotAlreadyMapped(newIssue, result)) {
mapIssue(

private void mapLastIssues(Collection<DefaultIssue> newIssues, Collection<IssueDto> lastIssues, IssueTrackingResult result) {
for (IssueDto lastIssue : lastIssues) {
result.addUnmatched(lastIssue);
}
for (DefaultIssue newIssue : newIssues) {
mapIssue(newIssue, result.unmatchedByKeyForRule(newIssue.ruleKey()).get(newIssue.key()), result);
}
for (DefaultIssue newIssue : newIssues) {
if (isNotAlreadyMapped(newIssue, result)) {
mapIssue(
