public function scopeWithType(Builder $query, $type)
    {
        // We do this for querying, searching and sorting with source attributes
        $this->setNodeTypeName($type);

        return $this->scopeWhereTranslation($query, 'source_type', $type, null);
    }