void () { myFixture.configureByText("Test.java", """ import java.io.*; class X { void test() { try { new FileInputStream("/etc/passwd"); } catch(<caret>) } } class MyException extends FileNotFoundException {} class My2Exception extends MyException {}"""); myFixture.complete(CompletionType.SMART); myFixture.assertPreferredCompletionItems(0, "FileNotFoundException", "IOException", "Exception", "Throwable", "MyException", "My2Exception", "RuntimeException", "ArithmeticException", "ArrayIndexOutOfBoundsException"); }