def METHOD_NAME(self, state: OvalState) -> Optional[str]:
    """
    Return a version range from a state
    """
    for var in state.element:
        operation = var.get("operation")
        if not operation:
            continue
        operand = self.translations.get(operation) or ""
        if not operand:
            continue
        version = var.text or ""
        if not version:
            continue
        version_range = operand + version
        version_range = version_range.replace("only", "").strip()
        # 0: is default epoch, remove it
        version_range = version_range.replace("0:", "").strip()
        x_version_ranges = {
            "<2.0.x": "2.0.x",
            "<3.x": "3.x",
            "<4.6.x": "4.6.x",
            "<8.0.x": "8.0.x",
            "<8.x": "8.x",
        }
        if version_range in x_version_ranges:
            version_range = x_version_ranges[version_range]
        return version_range