void () { final AutoCloseableResourceInspection inspection = new AutoCloseableResourceInspection(); inspection.anyMethodMayClose = false; myFixture.enableInspections(inspection); doTest("import java.io.*;" + "class X {" + " static void m() throws IOException {" + " n(new /*'FileInputStream' used without 'try'-with-resources statement*/FileInputStream/**/(\"file.name\"));" + " }" + " static void n(Closeable c) {" + " System.out.println(c);" + " }" + "}"); }