private static @NotNull ListPopup createMainPopup(@NotNull ActionGroup group, @NotNull DataContext context) {
    boolean hasLastActions = ContainerUtil.find(
      ActionProvider.EP_NAME.getExtensionList(), o -> !o.getLastActions(context).isEmpty()) != null;
    if (hasLastActions && ExperimentalUI.isNewUI()) {
      return new MyPopup(group, context, new PresentationFactory());
    }
    else {
      return JBPopupFactory.getInstance().createActionGroupPopup(
        null, group, context, ActionSelectionAid.MNEMONICS, true, ActionPlaces.getPopupPlace("SettingsEntryPoint"));
    }
  }
private static @NotNull ListPopup createMainPopup(@NotNull ActionGroup group, @NotNull DataContext context)