void () { final PsiNewExpression newExpression = createNewExpression("void foo() { new ClassIOException(); }"); List<PsiClassType> exceptions = ExceptionUtil.getUnhandledExceptions(newExpression, null); assertEquals(1, exceptions.size()); assertEquals("java.io.IOException", exceptions.get(0).getCanonicalText()); }