@Override
  public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e) {
    if (e == null) return AnAction.EMPTY_ARRAY;
    DefaultActionGroup group = new DefaultActionGroup();
    Project project = e.getProject();
    ThumbnailView view = ThumbnailViewActionUtil.getVisibleThumbnailView(e);
    if (view == null) return AnAction.EMPTY_ARRAY;
    ImageTagManager tagManager = ImageTagManager.getInstance(project);

    List<MyToggleAction> tagActions =
      ContainerUtil.map(tagManager.getAllTags(), (@NlsSafe var tag) -> new MyToggleAction(view, new TagFilter(tag, tagManager)));
    group.add(new AnAction(IdeBundle.messagePointer("action.Anonymous.text.all")) {
      @Override
      public void actionPerformed(@NotNull AnActionEvent e) {
        for (MyToggleAction tagAction : tagActions) {
          tagAction.setSelected(e, false);
        }
      }
    });
    group.add(Separator.getInstance());

    group.addAll(tagActions);

    return group.getChildren(e);
  }
@Override
  public AnAction @NotNull [] getChildren(@Nullable AnActionEvent e)