void () { configureByText(JavaFileType.INSTANCE, """ import java.io.*; class A { public void test() throws IOException { try (InputStream in = new FileInputStream("file.name")) { } <caret>catch (FileNotFoundException e) { throw new FileNotFoundException("no highlighting here"); } } }"""); ctrlShiftF7(); assertRangeText("FileInputStream", "catch"); }