@Override
	protected void applySettings() throws CancelledException {
		int txId = program.startTransaction(getTitle());
		try {
			if (selection != null) {
				ApplyCommonSettingsTask myTask =
					new ApplyCommonSettingsTask(this, program, selection);
				new TaskLauncher(myTask, null);
				if (myTask.isCancelled()) {
					throw new CancelledException();
				}
				return;
			}

			// assume single data settings
			applySettingsToData(this, data);
		}
		finally {
			program.endTransaction(txId, true);
		}
	}
Build an array of SettingsDefinitions which are shared across
all defined data constrained by an address set.

The presence of an instruction will result in the selectionContainsInstruction
flag being set.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/DataSettingsDialog.java