protected function findAssignmentByName($name)
    {
        $assignmentFound = collect($this->assignments)->filter(function ($assignment) use ($name) {
            return $assignment->name == $name;
        })->first();
        if ($assignmentFound) return $assignmentFound;
        return null;
    }