DataTypeComponent getSelectedNonPackedBitFieldComponent() {
		if (!editorModel.viewComposite.isPackingEnabled() &&
			editorModel.getNumSelectedRows() == 1) {
			int rowIndex = editorModel.getSelectedRows()[0];
			if (rowIndex < editorModel.getNumComponents()) {
				DataTypeComponent dtComponent = editorModel.getComponent(rowIndex);
				if (dtComponent.isBitFieldComponent()) {
					return dtComponent;
				}
			}
		}
		return null;
	}
Get the selected bitfield component if contained within a non-packed structure
@return selected bitfield component or null
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/StructureEditorProvider.java