Source:
<code>public boolean applyTo(@NonNull ITask task) { boolean changed = false; if (hasChanges(task.getCompletionDate(), getCompletionDate(), TaskAttribute.DATE_COMPLETION)) { task.setCompletionDate(getCompletionDate()); changed = true; } if (hasChanges(task.getCreationDate(), getCreationDate(), TaskAttribute.DATE_CREATION)) { task.setCreationDate(getCreationDate()); changed = true; } if (hasChanges(task.getModificationDate(), getModificationDate(), TaskAttribute.DATE_MODIFICATION)) { task.setModificationDate(getModificationDate()); changed = true; } if (hasChanges(task.getDueDate(), getDueDate(), TaskAttribute.DATE_DUE)) { task.setDueDate(getDueDate()); changed = true; } if (hasChanges(task.getOwner(), getOwner(), TaskAttribute.USER_ASSIGNED)) { task.setOwner(getOwner()); changed = true; } if (hasChanges(task.getOwnerId(), getOwnerId(), TaskAttribute.USER_ASSIGNED)) { task.setOwnerId(getOwnerId()); changed = true; } if (hasChanges(task.getPriority(), getPriorityLevelString(), TaskAttribute.PRIORITY)) { task.setPriority(getPriorityLevelString()); changed = true; } <START> String priorityLabel = getPriority(); <END> if (priorityLabel != null) { task.setAttribute(ITasksCoreConstants.ATTRIBUTE_PRIORITY_LABEL, priorityLabel); } if (hasChanges(task.getSummary(), getSummary(), TaskAttribute.SUMMARY)) { task.setSummary(getSummary()); changed = true; } if (hasChanges(task.getTaskKey(), getTaskKey(), TaskAttribute.TASK_KEY)) { task.setTaskKey(getTaskKey()); changed = true; } if (hasChanges(task.getTaskKind(), getTaskKind(), TaskAttribute.TASK_KIND)) { task.setTaskKind(getTaskKind()); changed = true; } if (hasChanges(task.getUrl(), getTaskUrl(), TaskAttribute.TASK_URL)) { task.setUrl(getTaskUrl()); changed = true; } return changed; }</code><technical_language>This hasChanges - label of priority change changing level want set changed in case</technical_language>

Target:
public boolean applyTo(@NonNull ITask task) { boolean changed = false; if (hasChanges(task.getCompletionDate(), getCompletionDate(), TaskAttribute.DATE_COMPLETION)) { task.setCompletionDate(getCompletionDate()); changed = true; } if (hasChanges(task.getCreationDate(), getCreationDate(), TaskAttribute.DATE_CREATION)) { task.setCreationDate(getCreationDate()); changed = true; } if (hasChanges(task.getModificationDate(), getModificationDate(), TaskAttribute.DATE_MODIFICATION)) { task.setModificationDate(getModificationDate()); changed = true; } if (hasChanges(task.getDueDate(), getDueDate(), TaskAttribute.DATE_DUE)) { task.setDueDate(getDueDate()); changed = true; } if (hasChanges(task.getOwner(), getOwner(), TaskAttribute.USER_ASSIGNED)) { task.setOwner(getOwner()); changed = true; } if (hasChanges(task.getOwnerId(), getOwnerId(), TaskAttribute.USER_ASSIGNED)) { task.setOwnerId(getOwnerId()); changed = true; } if (hasChanges(task.getPriority(), getPriorityLevelString(), TaskAttribute.PRIORITY)) { task.setPriority(getPriorityLevelString()); changed = true; } String priorityLabel = getPriority(); if (priorityLabel != null) { task.setAttribute(ITasksCoreConstants.ATTRIBUTE_PRIORITY_LABEL, priorityLabel); changed = true; } if (hasChanges(task.getSummary(), getSummary(), TaskAttribute.SUMMARY)) { task.setSummary(getSummary()); changed = true; } if (hasChanges(task.getTaskKey(), getTaskKey(), TaskAttribute.TASK_KEY)) { task.setTaskKey(getTaskKey()); changed = true; } if (hasChanges(task.getTaskKind(), getTaskKind(), TaskAttribute.TASK_KIND)) { task.setTaskKind(getTaskKind()); changed = true; } if (hasChanges(task.getUrl(), getTaskUrl(), TaskAttribute.TASK_URL)) { task.setUrl(getTaskUrl()); changed = true; } return changed; }