The quick fix suggests to split such statements into nested try-with-resources statements.
Example of try statement with multiple resources:
try (FileInputStream in = new FileInputStream("in.txt");
FileOutputStream out = new FileOutputStream("out.txt")) {
/*read and write*/
}
The example above is transformed into the following:
try (FileInputStream in = new FileInputStream("in.txt")) {
try (FileOutputStream out = new FileOutputStream("out.txt")) {
/*read and write*/
}
}