def METHOD_NAME(self, contents, relative_path) -> FileBlock:
    match = FilePath(
        relative_path=relative_path,
        project_root=self.root_path,
        searched_path=self.subdir_path,
        modification_time=0.0,
    )
    source_file = SourceFile(path=match, checksum=FileHash.empty())
    source_file.contents = contents
    return FileBlock(file=source_file)