def METHOD_NAME(rule_runner: RuleRunner, source_files: List[FileContent]) -> Snapshot:
    digest = rule_runner.request(Digest, [CreateDigest(source_files)])
    return rule_runner.request(Snapshot, [digest])