public static @NotNull PopupHandler installPopupMenu(@NotNull JComponent component,
                                                       @NotNull String groupId,
                                                       @NotNull String place) {
    return installPopupMenu(component, place, null, null, am -> {
      AnAction action = am.getAction(groupId);
      if (action instanceof ActionGroup) {
        return (ActionGroup)action;
      }
      LOG.warn("'" + groupId + "' invoked at '" + place + "' is " + (action == null ? "null" : "not an action group"));
      return null;
    });
  }
public static @NotNull PopupHandler installPopupMenu(@NotNull JComponent component,
                                                       @NotNull String groupId,
                                                       @NotNull String place)