presto-main/src/main/java/io/prestosql/metadata/PolymorphicScalarFunction.java/PolymorphicScalarFunction/computeExtraParameters
class PolymorphicScalarFunction:    private static List<Object> computeExtraParameters(MethodsGroup methodsGroup, SpecializeContext context)
    {
        return methodsGroup.getExtraParametersFunction().map(function -> function.apply(context)).orElse(emptyList());
    }