public final Data getLastData() {
		Address address = currentProgram.getMaxAddress();
		DataIterator iterator = currentProgram.getListing().getData(address, false);
		if (iterator.hasNext()) {
			return iterator.next();
		}
		return null;
	}
Returns the last defined data in the current program.
@return the last defined data in the current program
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java