for (IEditorReference editorReference : editorReferences) {
IEditorPart editorPart = editorReference.getEditor(false);
if (editorPart instanceof TaskEditor) {
TaskEditor taskEditorPart = (TaskEditor)editorPart;
IFormPage page = taskEditorPart.findPage(RedmineTaskEditorPage.ID);
if(page!=null) {
TaskDataModel model = ((RedmineTaskEditorPage)page).getModel();
ITask editorTask = model.getTask();
if (editorTask!=null && (editorTask==task || editorTask.getHandleIdentifier().equals(task.getHandleIdentifier()))) {