void () { PsiFile file = createTestFile(""" @lombok.SneakyThrows public void m1() { Runnable runnable = () -> { throwsMyException(); }; } """); PsiMethodCallExpression methodCall = findMethodCall(file); assertNotNull(methodCall); List<PsiClassType> exceptions = ExceptionUtil.getUnhandledExceptions(methodCall, null); assertEquals(1, exceptions.size()); assertEquals("Test.MyException", exceptions.get(0).getCanonicalText()); }