void () { PsiMethodCallExpression methodCall = createCall("void foo() { System.out.println(); }"); List<PsiClassType> exceptions = ExceptionUtil.getUnhandledExceptions(methodCall, null); assertTrue(exceptions.isEmpty()); }