void (@NotNull PsiMethodCallExpression expression) { PsiReferenceExpression methodRef = expression.getMethodExpression(); JavaResolveResult resolveResult = methodRef.advancedResolve(false); PsiMethod method = (PsiMethod)resolveResult.getElement(); if (method != null) { addExceptions(result, getExceptionsByMethod(method, resolveResult.getSubstitutor(), element)); } super.visitMethodCallExpression(expression); }