private static SettingsDefinition[] getCommonSettings(Program program,
			ProgramSelection selection) throws CancelledException {
		CommonSettingsAccumulatorTask myTask = new CommonSettingsAccumulatorTask(program, selection);
		new TaskLauncher(myTask, null);
		if (myTask.isCancelled()) {
			throw new CancelledException();
		}
		return myTask.defsArray;
	}
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