code: public static boolean showPoolInfo(
        PoolInfo poolInfo,
        Set<String> poolGroupFilterSet,
        Set<PoolInfo> poolInfoFilterSet) {
      // If there are no filters, show everything
      if (poolGroupFilterSet.isEmpty() && poolInfoFilterSet.isEmpty()) {
        return true;
      }
  
      if (poolGroupFilterSet.contains(poolInfo.getPoolGroupName())) {
        return true;
      } else if (poolInfoFilterSet.contains(poolInfo)) {
        return true;
      }
  
      return false;
    }
docs: True if should be shown for this filtering.
  @param poolInfo Pool info to check
  @param poolGroupFilterSet Set of valid pool groups
  @param poolInfoFilterSet Set of valid pool infos
  @return True if should be shown.