private String generateCompositeFieldNameByOffset() {

		long n = fieldOffsets.getNumValues();
		if (n != 1) {
			return null;
		}

		int offset = fieldOffsets.getMin();
		if (dataType instanceof Structure) {
			Structure structure = (Structure) dataType;
			DataTypeComponent dtc = structure.getComponentContaining(offset);
			if (dtc != null) {
				String name = dtc.getFieldName();
				if (name != null) {
					return name;
				}
				return dtc.getDefaultFieldName();
			}
		}
		else if (dataType instanceof Composite) {
			Composite composite = (Composite) dataType;

			DataTypeComponent[] components = composite.getComponents();
			for (DataTypeComponent dtc : components) {
				int dtcOffset = dtc.getOffset();
				if (dtcOffset == offset) {
					return dtc.getFieldName();
				}
			}
		}

		return null;
	}
Returns a display text for this field matcher, for example, {@code Foo.bar}.
@return the display text
Ghidra/Features/Base/src/main/java/ghidra/app/services/FieldMatcher.java