private function getIncludedResource($id, $type)
    {
        foreach ($this->included as $included) {
            $includedId = Arr::get($included, 'id');
            $includedType = Arr::get($included, 'type');

            if ((string) $includedType === (string) $type && (string) $includedId === (string) $id) {
                return $included;
            }
        }

        return $this->getDefaultIncludedResource($id, $type);
    }