@Nullable ActionGroup getPopupActionGroup(@NotNull EditorMouseEvent event) {
    List<AnAction> actions;
    if (event.getArea() == EditorMouseEventArea.ANNOTATIONS_AREA) {
      actions = getTextAnnotationPopupActions(event.getLogicalPosition().line);
    }
    else {
      actions = new ArrayList<>();
      if (ExperimentalUI.isNewUI() &&
          event.getArea() == EditorMouseEventArea.LINE_NUMBERS_AREA &&
          getClientProperty("line.number.hover.icon.context.menu") instanceof ActionGroup g) {
        actions.add(g);
      }
      if (myCustomGutterPopupGroup != null) {
        actions.add(Separator.getInstance());
        actions.add(myCustomGutterPopupGroup);
      }
      else if (myShowDefaultGutterPopup) {
        ActionGroup g = (ActionGroup)CustomActionsSchema.getInstance().getCorrectedAction(IdeActions.GROUP_EDITOR_GUTTER);
        if (g != null) {
          actions.add(Separator.getInstance());
          actions.add(g);
        }
      }
    }
    if (actions.isEmpty()) return null;
    return new EditorMousePopupActionGroup(actions, event);
  }
@Nullable ActionGroup getPopupActionGroup(@NotNull EditorMouseEvent event)