private static void applyVarArgs(Function destinationFunction, Function sourceFunction) {
		boolean sourceVarArgs = sourceFunction.hasVarArgs();
		boolean destVarArgs = destinationFunction.hasVarArgs();
		if (destVarArgs != sourceVarArgs) {
			destinationFunction.setVarArgs(sourceVarArgs);
		}
	}
Gets a unique name in the indicated namespace by appending an integer number if necessary
and ignoring any conflicts with existing parameters.
@param symbolTable the symbol table containing symbols for the indicated namespace
@param function the namespace containing symbol names to check.
@param baseName the base name to append with an integer number if necessary to create a
unique name.
@param namesNotToBeUsed set of names that should not be used when determining a unique name.
@return an unused unique name within the namespace ignoring current parameter names and
that doesn't conflict with any in the set of names not to be used.
Ghidra/Features/Base/src/main/java/ghidra/program/util/FunctionUtility.java