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

		if (set != null) {
			int cnt = 0;
			// simplified monitor to avoid too much overhead
			// assumes one instruction per range
			monitor.initialize(set.getNumAddressRanges());
			for (Instruction instr : program.getListing().getInstructions(set, true)) {
				if (monitor.isCancelled()) {
					break;
				}
				instr.setFlowOverride(flowOverride);
				monitor.setProgress(++cnt);
			}
			return true;
		}

		Instruction instr = program.getListing().getInstructionAt(instAddr);
		if (instr == null) {
			return false;
		}

		if (instr.getFlowOverride() == flowOverride) {
			return true;
		}

		instr.setFlowOverride(flowOverride);

		return true;
	}
Constructs a new command for overriding the flow  semantics of all instructions
within the address set.
@param set the address set of the instructions whose flow override is
to be set.
@param flowOverride the type of flow override.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/disassemble/SetFlowOverrideCmd.java