void (@NotNull PsiNewExpression expression) { JavaResolveResult resolveResult = expression.resolveMethodGenerics(); PsiMethod method = (PsiMethod)resolveResult.getElement(); if (method != null) { addExceptions(result, getExceptionsByMethod(method, resolveResult.getSubstitutor(), element)); } super.visitNewExpression(expression); }