private static void addCloseActions(@Nonnull ContextMenu menu, @Nonnull Dockable dockable) {
		menu.getItems().addAll(
				action("menu.tab.close", CarbonIcons.CLOSE, () -> dockable.inSpace(space -> space.closeDockable(dockable))),
				action("menu.tab.closeothers", CarbonIcons.CLOSE, () -> {
					dockable.inSpace(space -> {
						Unchecked.checkedForEach(space.getDockables(), d -> {
							if (d != dockable)
								space.closeDockable(d);
						}, (d, error) -> {
							logger.error("Failed to close tab '{}'", d.getTitle(), error);
						});
					});
				}),
				action("menu.tab.closeall", CarbonIcons.CLOSE, () -> {
					dockable.inSpace(space -> {
						Unchecked.checkedForEach(space.getDockables(), space::closeDockable, (d, error) -> {
							logger.error("Failed to close tab '{}'", d.getTitle(), error);
						});
					});
				})
		);
	}
Adds close actions to the given menu.
<ul>
    <li>Close</li>
    <li>Close others</li>
    <li>Close all</li>
</ul>

@param menu
		Menu to add to.
@param dockable
		Dockable reference.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java