@Override
	public FieldLocation getFieldLocation(ListingField lf, BigInteger index, int fieldNum,
			ProgramLocation loc) {
		if (loc instanceof OffsetFieldLocation offsetLoc &&
			offsetLoc.getType().equals(getOffsetFieldType())) {
			Object obj = lf.getProxy().getObject();

			if (obj instanceof CodeUnit && hasSamePath(lf, offsetLoc)) {
				return new FieldLocation(index, fieldNum, 0, offsetLoc.getCharOffset());
			}
		}
		return null;
	}
Gets the {@link OffsetFieldType offset type}

@return the {@link OffsetFieldType offset type}
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/AbstractOffsetFieldFactory.java