@Override
    public String apply(@NotNull PsiElement element) {
      // we could have run parallel action group expand here if it was EDT
      AnActionEvent event = createActionEvent(element);
      return join(mapNotNull(actions, action -> getText(action, event)), "\n");
    }
@Override
    public String apply(@NotNull PsiElement element)