void (MouseEvent e) { int logicalLineAtCursor = EditorUtil.yPositionToLogicalLine(myEditor, e); Point point = e.getPoint(); PointInfo info = getPointInfo(point); if (info != null) { logGutterIconClick(info.renderer); } myLastActionableClick = new ClickInfo(logicalLineAtCursor, info == null ? point : info.iconCenterPosition); final ActionManager actionManager = ActionManager.getInstance(); if (myEditor.getMouseEventArea(e) == EditorMouseEventArea.ANNOTATIONS_AREA) { final List<AnAction> addActions = getTextAnnotationPopupActions(logicalLineAtCursor); if (!addActions.isEmpty()) { e.consume(); DefaultActionGroup actionGroup = DefaultActionGroup.createPopupGroup( EditorBundle.messagePointer("editor.annotations.action.group.name")); for (AnAction addAction : addActions) { actionGroup.add(addAction); } JPopupMenu menu = actionManager.createActionPopupMenu(ActionPlaces.EDITOR_ANNOTATIONS_AREA_POPUP, actionGroup).getComponent(); menu.show(this, e.getX(), e.getY()); } } else { if (info != null) { AnAction rightButtonAction = info.renderer.getRightButtonClickAction(); if (rightButtonAction != null) { e.consume(); performAction(rightButtonAction, e, ActionPlaces.EDITOR_GUTTER_POPUP, myEditor.getDataContext(), info); } else { ActionGroup actionGroup = info.renderer.getPopupMenuActions(); if (actionGroup != null) { e.consume(); if (checkDumbAware(actionGroup)) { addLoadingIconForGutterMark(info); actionManager.createActionPopupMenu(ActionPlaces.EDITOR_GUTTER_POPUP, actionGroup) .getComponent() .show(this, e.getX(), e.getY()); } else { notifyNotDumbAware(); } } } } else { ActionGroup group = null; if (ExperimentalUI.isNewUI() && myEditor.getMouseEventArea(e) == EditorMouseEventArea.LINE_NUMBERS_AREA && getClientProperty("line.number.hover.icon.context.menu") instanceof ActionGroup) { group = (ActionGroup)getClientProperty("line.number.hover.icon.context.menu"); } if (group == null) { group = myCustomGutterPopupGroup; } if (group == null && myShowDefaultGutterPopup) { group = (ActionGroup)CustomActionsSchema.getInstance().getCorrectedAction(IdeActions.GROUP_EDITOR_GUTTER); } if (group != null) { showGutterContextMenu(group, e); } } } }