private @Nullable AnAction getFirstEnabledAction(@NotNull AnActionEvent e) {
    UpdateSession session = e.getUpdateSession();
    var children = session.children(getDelegate());
    var firstEnabled = ContainerUtil.find(children, a -> session.presentation(a).isEnabled());
    return firstEnabled != null ? firstEnabled : ContainerUtil.getFirstItem(children);
  }
private @Nullable AnAction getFirstEnabledAction(@NotNull AnActionEvent e)