def METHOD_NAME(self, version_doc):
    version_docs = list(get_output_link_versions(
        self.project_name,
        version_doc["_id"],
        fields=["name", "parent"]
    ))
    versions_by_subset_id = collections.defaultdict(list)
    for version_doc in version_docs:
        subset_id = version_doc["parent"]
        versions_by_subset_id[subset_id].append(version_doc)
    subset_docs = []
    if versions_by_subset_id:
        subset_docs = list(get_subsets(
            self.project_name,
            subset_ids=versions_by_subset_id.keys(),
            fields=["_id", "name", "parent"]
        ))
    asset_docs = []
    subsets_by_asset_id = collections.defaultdict(list)
    if subset_docs:
        for subset_doc in subset_docs:
            asset_id = subset_doc["parent"]
            subsets_by_asset_id[asset_id].append(subset_doc)
        asset_docs = list(get_assets(
            self.project_name,
            asset_ids=subsets_by_asset_id.keys(),
            fields=["_id", "name"]
        ))
    for asset_doc in asset_docs:
        asset_id = asset_doc["_id"]
        for subset_doc in subsets_by_asset_id[asset_id]:
            subset_id = subset_doc["_id"]
            for version_doc in versions_by_subset_id[subset_id]:
                self._out_view.addItem("{} {} v{:0>3}".format(
                    asset_doc["name"],
                    subset_doc["name"],
                    version_doc["name"],
                ))