private String listNames(TaskMonitor monitor) throws CancelledException {
		StringBuilder buffer = new StringBuilder();

		int counter = 0;
		Iterator<String> iterator = nameAnalysis.getNameIterator();
		while (iterator.hasNext()) {
			monitor.checkCancelled();
			String display = iterator.next();
			NameVersions versions = nameAnalysis.getVersions(display);
			if (versions != null && versions.demangledFull != null) {
				display = versions.demangledFull;
			}
			buffer.append(' ');
			buffer.append(display);
			buffer.append('\n');
			counter++;
			if (counter > 3) {
				break;
			}
		}
		if (iterator.hasNext()) {
			buffer.append("  " + nameAnalysis.numNames() + " names - too many to list\n");
		}

		return buffer.toString();
	}
Construct list of names as they should appear in the comment for the function.
@param monitor is the task monitor
@return the list of names as a formatted String
@throws CancelledException if the user cancels the task
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/cmd/ApplyFidEntriesCommand.java