@Override
		public void mouseReleased(MouseEvent e) {
			if (selectionActive && !e.isConsumed()) {
				e.consume();
				selectionActive = false;

				Point p = e.getPoint();
				boolean inBounds = placementComponent.getVisibleRect().contains(p);
				setCursor(Cursor.getPredefinedCursor(
					inBounds ? Cursor.HAND_CURSOR : Cursor.DEFAULT_CURSOR));
			}
		}
<code>BitFieldEditorPanel</code> provides the ability to add or modify bitfields
within non-packed structures.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/BitFieldEditorPanel.java