void (Component comp, int x, int y) { ActionPopupMenu contextMenu = ((ActionManagerImpl)ActionManager.getInstance()).createActionPopupMenu( ActionPlaces.JAVADOC_TOOLBAR, new DefaultActionGroup(navigationAndAdditionalActions), new MenuItemPresentationFactory(true) ); contextMenu.getComponent().show(comp, x, y); }