void (Component comp, int x, int y) { if (condition.shouldShowPopup(comp, x, y)) { ActionManager manager = actionManager == null ? ActionManager.getInstance() : actionManager; ActionPopupMenu popupMenu = manager.createActionPopupMenu(place, group); popupMenu.getComponent().show(comp, x, y); } }