@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
      if (e == null) return AnAction.EMPTY_ARRAY;
      if (e.getUpdateSession().compute(
        this, "isToolbarDuplicatedAnywhere", ActionUpdateThread.EDT,
        () -> isToolbarDuplicatedAnywhere(getEventComponent(e)))) {
        return AnAction.EMPTY_ARRAY;
      }
      return super.getChildren(e);
    }
@Override
    public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e)