MockGenerator: getMethodParameters renamed to getFunctionParameters because it is used only with global functions.