PopupMenu with booleans

I want to create a PopupMenu with 6 booleans from the Client tags folder.
Each boolean must be provided with a checkbox with text in the menu and written back to the tag when a mouse click has taken place.
What is the most convenient way to realize this?
Sincerely.

Bidirectional bindings to the client tags.

Is this possible in a PopupMenu?

If you use Java types to build a JPopupMenu from scratch, not using Ignition’s function. I’m afraid I don’t have an example handy – travelling.