protected boolean hasSamePath(ListingField bf, ProgramLocation loc) {
		Object obj = bf.getProxy().getObject();
		if (obj instanceof Data) {
			Data data = (Data) obj;
			int[] path1 = data.getComponentPath();
			int[] path2 = loc.getComponentPath();
			if (path1 == null) {
				return path2 == null || path2.length == 0;
			}
			if (path2 == null) {
				return path1.length == 0;
			}
			if (path1.length != path2.length) {
				return false;
			}
			for (int i = 0; i < path2.length; i++) {
				if (path1[i] != path2[i]) {
					return false;
				}
			}
		}
		return true;
	}
Used to specify which format models this field can belong to.
@param category the category for this field
@param proxyObjectClass the type of proxy object used by this field
@return true if this class accepts the given category.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldFactory.java