}
    /**
     * Completes this builder by creating the formatter.
     * This uses the default locale.
     *
     * @param ResolverStyle $resolverStyle the resolver style to use, not null
     * @return DateTimeFormatter the created formatter, not null
     */
    public function toFormatter3(ResolverStyle $resolverStyle, $chrono)
    {
        // TODO fix Locale use
        return $this->toFormatter4(Locale::getDefault(), $resolverStyle, $chrono);
    }
    /**
     * Completes this builder by creating the formatter.
     *
     * @param Locale $locale the locale to use for formatting, not null
     * @param Chronology|null $chrono the chronology to use, may be null
     * @return DateTimeFormatter the created formatter, not null
     */
    private function toFormatter4(Locale $locale, ResolverStyle $resolverStyle, $chrono)
    {
        while ($this->active->parent !== null) {
            $this->optionalEnd();
        }
        $pp = new CompositePrinterParser($this->printerParsers, false);
        return new DateTimeFormatter($pp, $locale, DecimalStyle::STANDARD(), $resolverStyle, null, $chrono, null);
    }
}
DateTimeFormatterBuilder::init();