private TaskData getTaskToMark(TaskData _task, boolean unredo,
			HashMap<DateInfo, TaskData> _taskToEdit, LocalDateTime st,
			LocalDateTime et) {
		TaskData task;
		if (unredo || st != null || et != null) {
			DateInfo d = new DateInfo(st, et);
			task = _taskToEdit.get(d);
			if (isSuspendedAction) {
				suspendingAction = null;
				isSuspendedAction = false;
			}
		} else {
			if (isSuspendedAction) {
				DateInfo d = new DateInfo(st, et);
				task = _taskToEdit.get(d);
				suspendingAction = null;
				isSuspendedAction = false;
			} else {
				task = searchTool.findTaskByContentandDate(_task, _taskToEdit);
				if (task.getContent().equals("xxxxxxxxxxxxxxxxxxxx")) {
					if (isSuspendedAction) {
						suspendingAction = null;
						isSuspendedAction = false;
					} else {
						suspendingAction = action;
						isSuspendedAction = true;
					}
					task = null;
				}
			}
		}
		return task;
	}