code: @Nullable
    public static Filter toFilter(@Nullable DimFilter dimFilter)
    {
      return dimFilter == null ? null : dimFilter.toFilter();
    }
docs: Convert a DimFilter to a Filter.
  
  @param dimFilter dimFilter
  
  @return converted filter, or null if input was null