private static @NotNull MouseEvent getMouseEvent(@NotNull AnActionEvent e) {
        InputEvent inputEvent = e.getInputEvent();
        if (inputEvent instanceof MouseEvent mouseEvent) {
          return mouseEvent;
        }
        return JBPopupFactory.getInstance().guessBestPopupLocation(e.getDataContext()).toMouseEvent();
      }
private static @NotNull MouseEvent getMouseEvent(@NotNull AnActionEvent e)