void (InferenceSession session, PsiExpression psiExpression, PsiType returnType, Set<? super InferenceVariable> result) { if (psiExpression instanceof PsiLambdaExpression) { if (!PsiTypes.voidType().equals(returnType)) { final List<PsiExpression> returnExpressions = LambdaUtil.getReturnExpressions((PsiLambdaExpression)psiExpression); for (PsiExpression expression : returnExpressions) { final Set<InferenceVariable> resultInputVars = createSelfConstraint(returnType, expression).getInputVariables(session); if (resultInputVars != null) { result.addAll(resultInputVars); } } } } }