@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
      if (myChildren == null) {
        myChildren = new AnAction[2];
        myChildren[0] = new DumbAwareAction(CopyrightBundle.messagePointer("action.local.text"),
                                            CopyrightBundle.messagePointer("action.stored.in.ide.description"), () -> null) {
          @Override
          public void actionPerformed(@NotNull AnActionEvent e) {
            doAddProfile(false);
          }
        };
        myChildren[1] = new DumbAwareAction(CopyrightBundle.messagePointer("action.shared.text"),
                                            CopyrightBundle.messagePointer("action.stored.in.project.description"), () -> null) {
          @Override
          public void actionPerformed(@NotNull AnActionEvent e) {
            doAddProfile(true);
          }
        };
      }
      if (myFromPopup) {
        final AnAction action = myChildren[getDefaultIndex()];
        action.getTemplatePresentation().setIcon(IconUtil.getAddIcon());
        return new AnAction[]{action};
      }
      return myChildren;
    }
@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e)