@Override
		public void addEntry(int off32, int off64, String name, DataType dat) {
			int offset = is64Bit ? off64 : off32;
			if (offset < 0) {
				return;
			}
			tebDataType.insertAtOffset(offset, dat, dat.getLength(), name, null);
		}
Create TEB fields as components of a Structure data-type
Ghidra/Features/Base/src/main/java/ghidra/app/util/datatype/microsoft/ThreadEnvironmentBlock.java