in report-builder/src/jetbrains/coverage/report/impl/IOUtil.java [53:71]
public static void copyResource(final @NotNull Class<?> clazz, final @NotNull String resourceName, final @NotNull OutputStream outputStream) throws IOException {
Callable<Void> doCopy = new Callable<Void>() {
public Void call() throws Exception {
InputStream asStream = null;
try {
asStream = clazz.getResourceAsStream(resourceName);
if (asStream != null) {
copyStreamContent(asStream, outputStream);
}
} finally {
close(asStream);
close(outputStream);
}
return null;
}
};
IOUtil.<Void, IOException>loop(doCopy, false);
}