public static function display(array $assocArgs, ResultCollection $resultCollection): void
    {
        // TODO: Use null coalescing assignment operator.
        $assocArgs['fields'] = $assocArgs['fields'] ?? self::DEFAULT_FIELDS;

        $formatter = new Formatter($assocArgs, $assocArgs['fields']);
        $formatter->display_items(
            self::toTable($resultCollection),
            true
        );
    }