Changed wildcardExpression to become a function