static JLabel standardLabelPopupMenu(JLabel l) { componentPopupMenu(l, voidfunc(JPopupMenu menu) { addMenuItem(menu, "Copy text to clipboard", r { copyTextToClipboard(l.getText()); }); }); ret l; }