@Deprecated(forRemoval = true)
  protected static @Nullable String getText(@NotNull AnAction action, @NotNull AnActionEvent event) {
    if (!(action instanceof ExecutorAction)) return null;
    event.getPresentation().copyFrom(action.getTemplatePresentation());
    event.getPresentation().setEnabledAndVisible(true);
    action.update(event);
    if (!event.getPresentation().isEnabledAndVisible()) {
      return null;
    }
    return event.getPresentation().getText();
  }
@Deprecated(forRemoval = true)
  protected static @Nullable String getText(@NotNull AnAction action, @NotNull AnActionEvent event)