@Override
  public @Nullable ActionGroup getPopupActionGroup(@NotNull EditorMouseEvent event) {
    if (event.getArea() == EditorMouseEventArea.EDITING_AREA) {
      for (int i = myPopupHandlers.size() - 1; i >= 0; i--) {
        EditorPopupHandler handler = myPopupHandlers.get(i);
        ActionGroup group = handler instanceof ContextMenuPopupHandler o ? o.getActionGroup(event) : null;
        if (group instanceof DefaultActionGroup o && o.getChildrenCount() == 0 &&
            group.getClass() == DefaultActionGroup.class) return group;
        if (group != null) return new EditorMousePopupActionGroup(group, event);
      }
      return null;
    }
    else {
      return myGutterComponent.getPopupActionGroup(event);
    }
  }
@Override
  public @Nullable ActionGroup getPopupActionGroup(@NotNull EditorMouseEvent event)