public ActionMenuItem(
      final AnAction action,
      final Presentation presentation,
      @NotNull final String place,
      @NotNull DataContext context,
      final boolean enableMnemonics,
      final boolean prepareNow,
      final boolean insideCheckedGroup) {
    myAction = ActionRef.fromAction(action);
    myPresentation = presentation;
    myPlace = place;
    myContext = context;
    myEnableMnemonics = enableMnemonics;
    myToggleable = action instanceof Toggleable;
    myInsideCheckedGroup = insideCheckedGroup;

    myEvent =
        new AnActionEvent(null, context, place, myPresentation, ActionManager.getInstance(), 0);
    addActionListener(new ActionTransmitter());
    setBorderPainted(false);

    updateUI();

    if (prepareNow) {
      init();
    } else {
      setText("loading...");
    }
  }
  public ActionMenuItem(
      AnAction action,
      Presentation presentation,
      String place,
      DataContext context,
      final boolean enableMnemonics,
      boolean prepareNow) {
    myAction = ActionRef.fromAction(action);
    myPresentation = presentation;
    myPlace = place;
    myContext = context;
    myEnableMnemonics = enableMnemonics;
    myEvent =
        new AnActionEvent(null, context, place, myPresentation, ActionManager.getInstance(), 0);
    addActionListener(new ActionTransmitter());
    setBorderPainted(false);

    if (prepareNow) {
      init();
    } else {
      setText("loading...");
    }
  }