docs: public static Granularity toQueryGranularity(final ExtractionFn extractionFn)
    {
      if (extractionFn instanceof TimeFormatExtractionFn) {
        final TimeFormatExtractionFn fn = (TimeFormatExtractionFn) extractionFn;
        if (fn.getFormat() == null && fn.getTimeZone() == null && fn.getLocale() == null && fn.isAsMillis()) {
          return fn.getGranularity();
        }
      }
  
      return null;
    }