private Label addIfNotContains(final Issue issue, final String label, Long customFieldId, final ApplicationUser remoteUser, final boolean sendNotification) { Set<Label> oldLabels = labelStore.getLabels(issue.getId(), customFieldId); if (containsLabel(label, oldLabels)) { return getLabel(label, oldLabels); } else { final Label newLabel = labelStore.addLabel(issue.getId(), customFieldId, label); issueUpdated(newLabel, oldLabels, issue, customFieldId, remoteUser, sendNotification); return newLabel; } }