add the prebuilt item for the given action (omitted, or included disabled, per includeDisabled)
add a divider between groups. Unnamed dividers get a unique key (e.g. "divider-1") so several can be added to one menu without React key collisions.
Optionalkey: stringadd all the standard actions for this node type, in their default order and without dividers.
For TabGroupNode this includes the custom rename/color controls (with a divider)
before the toggleOpen/ungroup actions, matching getTabGroupMenuItems.
actions/includeDisabled/getLabel/getIcon in the options apply only to the
toggleOpen/ungroup actions; the custom controls have no disabled/label/icon state.
Returns entries with consecutive dividers collapsed to one and any divider that ends up leading or trailing removed (a divider is only kept when it separates two other entries).
A fluent builder for prebuilt node context menu entries: choose which actions to show (in your own order), interleave your own items, and place dividers between groups, then call ContextMenuBuilder.build to get the PopupMenuEntrys for showPopupMenu.
Example