def METHOD_NAME(cls, data, base_path) -> Optional[Path]:
    if isinstance(data, str) and data.startswith(FILE_PREFIX):
        # Use directly if absolute path
        path = Path(data[len(FILE_PREFIX) :])
        if not path.is_absolute():
            path = Path(base_path) / path
            path.resolve()
        return path
    return None