void (@NotNull JComponent actionLink) { if (!myPopupState.isRecentlyHidden()) { addDataProvider(actionLink, dataId -> { if (CommonDataKeys.VIRTUAL_FILE.is(dataId)) { return LightEditService.getInstance().getSelectedFile(); } return null; }); ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.STATUS_BAR_PLACE, createAccessFullIdeActionGroup()); popupMenu.setTargetComponent(actionLink); JPopupMenu menu = popupMenu.getComponent(); myPopupState.prepareToShow(menu); JBPopupMenu.showAbove(actionLink, menu); } }