def METHOD_NAME(cls, value: Any) -> Any:
    if isinstance(value, str):
        secret_prefix = "secret:"  # noqa: S105
        if value.startswith(secret_prefix):
            key = value.removeprefix(secret_prefix)
            secret = SecretService.get_secret(key)
            with sentry_sdk.start_span(op="task", description="decrypt_secret"):
                return SecretService._decrypt(secret.value)
        file_prefix = "file:"
        if value.startswith(file_prefix):
            file_name = value.removeprefix(file_prefix)
            full_path = FileSystemService.full_path_from_relative_path(file_name)
            with open(full_path) as f:
                return f.read()
        return SecretService.resolve_possibly_secret_value(value)
    return value