static void titlePopupMenuItem(Component c, fS name, fO action) {
  titlePopupMenu(c, voidfunc(JPopupMenu menu) {
    addMenuItem(menu, name, action);
  });
}

static void titlePopupMenuItem(Component c, final JMenuItem menuItem) {
  titlePopupMenu(c, voidfunc(JPopupMenu menu) {
    addMenuItem(menu, menuItem);
  });
}