function formatHints(hints, query) {
        var hasColorSwatch = hints.some(function (token) {
            return token.color;
        });