void (Task oldTask, Task newTask) { if (getBranchName(oldTask).equals(myBranchName.getText())) { myBranchName.setText(getBranchName(newTask)); } if (getChangelistName(oldTask).equals(myChangelistName.getText())) { myChangelistName.setText(getChangelistName(newTask)); } }