public static RequiredValuesSet GetValuesRequiredBy(LambdaExpression lambda)
        {
            var finder = new MappingContextMemberAccessFinder(lambda.Parameters[0]);

            finder.Visit(lambda.Body);

            return(finder._requiredValues);
        }
 private static RequiredValuesSet GetRequiredValues(LambdaExpression lambda)
 => MappingContextMemberAccessFinder.GetValuesRequiredBy(lambda);