def METHOD_NAME(self, record: Record) -> dict[str, Any] | None:
    details = record.vulnerability_details
    if not details:
        # this shouldn't happen
        return None
    severity = record.severity.name.lower() if record.severity else ""
    vulnerability: "dict[str, Any]" = {
        "id": str(uuid4()),
        "identifiers": [
            {
                "name": record.short_description,
                "type": "cve",
                "value": details["id"],
            }
        ],
        "location": {
            "file": record.repo_file_path.lstrip("/"),
        },
        "name": record.short_description,
        "description": details.get("description"),
        "severity": SEVERITY_TO_GITLAB_LEVEL.get(severity, DEFAULT_SEVERITY_GITLAB_LEVEL),
        "solution": details.get("status"),
    }
    link = details.get("link")
    if valid_url(link):
        # url can't be None
        vulnerability["identifiers"][0]["url"] = link
        vulnerability["links"] = [
            {
                "url": link,
            }
        ]
    return vulnerability