private @NotNull <T extends TreeAction> List<T> filterActive(T @NotNull [] actions) {
    List<T> filtered = new ArrayList<>();
    for (T action : actions) {
      if (isFiltered(action)) filtered.add(action);
    }
    return filtered;
  }
private @NotNull <T extends TreeAction> List<T> filterActive(T @NotNull [] actions)