void (final Component comp, final int x, final int y) { final Content content = c instanceof BaseLabel ? ((BaseLabel)c).getContent() : null; ui.showContextMenu(comp, x, y, ui.window.createPopupGroup(), content); }