public static MathGenericNode WithFunction(this MathGenericNode node, MathGeneratedFunction function)
        {
            var methodName        = function.GetMethodsSignature().OpType;
            var compatibleMethods = MathOperationsMetaData.MethodsByName[methodName];
            var currentMethod     = compatibleMethods.Single(o => o.EnumName == function.ToString());

            node.Function          = function;
            node.Inputs.DataCount  = currentMethod.Params.Length;
            node.GenerationVersion = MathGeneratedDelegates.GenerationVersion;
            return(node);
        }