@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) {
      if(!myCanBeLambdaBody) return;
      super.visitReferenceExpression(expression);
      PsiElement element = expression.resolve();
      if (element instanceof PsiVariable && !isAllowedInLambda(expression, (PsiVariable)element)) {
        myCanBeLambdaBody = false;
      }
    }
@Override
    public void visitReferenceExpression(@NotNull PsiReferenceExpression expression)