@Override
	public boolean applyTo(Program program, TaskMonitor monitor) {

		monitor.setIndeterminate(true);
		monitor.setMessage("Creating Equate");

		while (iterator.hasNext() && !monitor.isCancelled()) {
			CodeUnit cu = iterator.next();
			if (cu instanceof Instruction) {
				maybeCreateEquate(program, (Instruction) cu);
			}
			else if (cu instanceof Data) {
				maybeCreateEquate(program, (Data) cu);
			}
		}
		return true;
	}
@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