public static function find($task_ids)
    {
        if (!is_array($task_ids)) {
            $task_ids = array($task_ids);
        }
        $tasks = self::getAll();
        foreach ($tasks as $key => $task) {
            /**
             * @var self $task
             */
            if (!in_array($task->task_id, $task_ids)) {
                unset($tasks[$key]);
            }
        }
        return $tasks;
    }