     }
   }
 
-  private func generateFileContents(resources: Resources, generators: [StructGenerator]) -> String {
+  private func generateRegularFileContents(resources: Resources, generators: [StructGenerator]) -> String {
     let aggregatedResult = AggregatedStructGenerator(subgenerators: generators)
       .generatedStructs(at: callInformation.accessLevel, prefix: "")
 

      let resources = Resources(resourceURLs: resourceURLs, fileManager: FileManager.default)

      // Generate regular R file
      let fileContents = generateFileContents(resources: resources, generators: [
        ImageStructGenerator(assetFolders: resources.assetFolders, images: resources.images),
        ColorStructGenerator(assetFolders: resources.assetFolders),
        FontStructGenerator(fonts: resources.fonts),

      .joined(separator: "\n\n")
      + "\n" // Newline at end of file
  }

  private func generateUITestFileContents(resources: Resources, generators: [StructGenerator]) -> String {
    let (externalStruct, _) =  AggregatedStructGenerator(subgenerators: generators)
      .generatedStructs(at: callInformation.accessLevel, prefix: "")

    let codeConvertibles: [SwiftCodeConverible?] = [
      HeaderPrinter(),
      externalStruct
    ]

    return codeConvertibles
      .compactMap { $0?.swiftCode }
      .joined(separator: "\n\n")
      + "\n" // Newline at end of file
  }
}

private func writeIfChanged(contents: String, toURL outputURL: URL) {
