closes(other) {
        if (other['config'] !== this.config) {
            return false;
        }
        return this.openingBrackets.has(other);
    }
Checks if this bracket closes the given other bracket.
If the bracket infos come from different configurations, this method will return false.