private static @NotNull AnActionEvent convertAnActionEventToMouseAnActionEvent(@NotNull AnActionEvent e, @NotNull Component component) {
    int x = component.getX() + component.getWidth() / 2;
    int y = component.getY() + component.getHeight() / 2;
    return new AnActionEvent(new MouseEvent(component, MouseEvent.MOUSE_CLICKED, 0, 0, x, y, 1, false),
                             e.getDataContext(),
                             e.getPlace(),
                             e.getPresentation(),
                             e.getActionManager(),
                             e.getModifiers());
  }
private static @NotNull AnActionEvent convertAnActionEventToMouseAnActionEvent(@NotNull AnActionEvent e, @NotNull Component component)