private FieldMatcher getFieldMatcher() {
		int[] rows = model.getSelectedComponentRows();
		if (rows.length == 0) {
			return null;
		}

		int row = rows[0];
		DataTypeComponent dtComponent = model.getComponent(row);
		String fieldName = dtComponent.getFieldName();
		Composite composite = model.getOriginalComposite();
		if (fieldName != null) {
			return new FieldMatcher(composite, fieldName);
		}

		int offset = dtComponent.getOffset();
		return new FieldMatcher(composite, offset);
	}
An action to show references to the field in the currently selected editor row.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/FindReferencesToStructureFieldAction.java