presto-main/src/main/java/io/prestosql/operator/annotations/ScalarImplementationDependency.java/ScalarImplementationDependency/resolve
class ScalarImplementationDependency:    @Override
    public MethodHandle resolve(BoundVariables boundVariables, Metadata metadata)
    {
        ResolvedFunction resolvedFunction = getResolvedFunction(boundVariables, metadata);
        if (invocationConvention.isPresent()) {
            return metadata.getFunctionInvokerProvider().createFunctionInvoker(resolvedFunction, invocationConvention).methodHandle();
        }
        return metadata.getScalarFunctionImplementation(resolvedFunction).getMethodHandle();
    }