void () { doTest( """ import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.List; class AutoCloseableSample { private static void processFiles(List<String> files) throws IOException { OutputStream stream = null; try { for (String file : files) { stream = new FileOutputStream(file); stream.close(); } } finally { stream.close(); } } } """); }