captureValidatedContents method
Records contents already read by validation without opening the file
again. null records that the optional path did not exist.
Implementation
void captureValidatedContents(String path, String? contents) {
if (contains(path)) return;
_originals[path] = contents;
}