private String generateFormattedEquateName() {
		Program program = context.getProgram();
		Enum enumWithId = (Enum) program.getDataTypeManager().addDataType(enoom, null);
		String formattedName =
			EquateManager.formatNameForEquate(enumWithId.getUniversalID(), targetScalarValue);
		return formattedName;
	}
@param scalar user defined scalar to search for in program
@param iter the range of code units for which to maybe create equates
@param enoom the enum to use for formatting the equate name
@param overwriteExisting true to rename existing equates
@param context the action context
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/CreateEquateCmd.java