package com.heroku.sdk.deploy.util;

import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.stream.Stream;

public class Util {
    public static Stream<String> readLinesFromInputStream(InputStream inputStream) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));

        try {
            return bufferedReader.lines();
        } catch (UncheckedIOException e) {
            throw e.getCause();
        }
    }

    public static Path createTemporaryFileWithStringContents(String content) throws IOException {
        Path temporaryFile = Files.createTempFile("heroku-deploy", "");

        try (BufferedWriter writer = Files.newBufferedWriter(temporaryFile)) {
            writer.write(content);
        }

        return temporaryFile;
    }
}

@@ -508,340 +508,7 @@
    %7D
-%0A%0A    public static Path createTemporaryFileWithStringContents(String content) throws IOException %7B%0A        Path temporaryFile = Files.createTempFile(%22heroku-deploy%22, %22%22);%0A%0A        try (BufferedWriter writer = Files.newBufferedWriter(temporaryFile)) %7B%0A            writer.write(content);%0A        %7D%0A%0A        return temporaryFile;%0A    %7D
 %0A%7D%0A

Remove unsed method