public function resources(int $version = null)
    {
        $version = $version ?? $this->version;

        return $this->definitions->filter(function (ResourceDefinition $definition) use ($version) {
            return $definition->version === $version;
        })->pluck('resource');
    }