private static int generateParameterHtml(Parameter param, List<String> params) {
		String type = param.getDataType().getName();
		String name = param.getName();
		int length = type.length() + 1 + name.length();
		int rawTextLength = length;

		//
		// Bound the max width of the tooltip
		//
		if (length > PARAM_MAX_CHAR_LENGTH) {
			int half = PARAM_MAX_CHAR_LENGTH / 2;
			int available = half;
			if (type.length() > half) {
				type = type.substring(0, half - 3) + ELLIPSES;
			}
			else {
				available = PARAM_MAX_CHAR_LENGTH - type.length();
			}

			if (name.length() > available) {
				name = name.substring(0, available - 3) + ELLIPSES;
			}
		}

		StringBuilder pb = new StringBuilder();
		pb.append(colorString(Colors.FOREGROUND, friendlyEncodeHTML(type)));
		pb.append(HTML_SPACE);

		pb.append(colorString(FunctionColors.NAME, friendlyEncodeHTML(name)));
		params.add(pb.toString());
		return rawTextLength;
	}
Return an HTML formatted rendering of a function

@param function the function
@param includeSymbolDetails true to include details of the symbol
@return tool tip text for the given function
Ghidra/Features/Base/src/main/java/ghidra/app/util/ToolTipUtils.java