void (@NotNull ActionGroup group, MouseEvent e) { e.consume(); ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.EDITOR_GUTTER_POPUP, group); putClientProperty(EDITOR_GUTTER_CONTEXT_MENU_KEY, popupMenu); popupMenu.getComponent().addPopupMenuListener(new PopupMenuListenerAdapter() { @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { EditorGutterComponentImpl.this.putClientProperty(EDITOR_GUTTER_CONTEXT_MENU_KEY, null); } }); popupMenu.getComponent().show(this, e.getX(), e.getY()); }