public static AddressSet getDefinedData(Program program, TaskMonitor monitor)
			throws CancelledException {
		DataIterator dataIter =
			program.getListing().getDefinedData(program.getMemory().getExecuteSet(), true);
		AddressSet definedData = new AddressSet();
		for (Data d : dataIter) {
			monitor.checkCancelled();
			definedData.add(
				new AddressRangeImpl(d.getAddress(), d.getAddress().add(d.getLength() - 1)));
		}
		return definedData;
	}
Returns an {@link AddressSet} consisting of all {@link Address}es where data is defined
in {@code program}.  Note that this includes addresses within defined data and not just
addresses where defined data starts.
@param program source program
@param monitor task monitor
@return addresses where data is defined
@throws CancelledException if monitor is canceled
Ghidra/Extensions/MachineLearning/src/main/java/ghidra/machinelearning/functionfinding/ModelTrainingUtils.java