     internal static func clearCaches() {
         queueForRebuild.clear()
         responseCache.clear()
-        assertHandlers.removeAll(keepingCapacity: false)
+        assertHandlerCache.clear()
         structureCache.clear()
         syntaxMapCache.clear()
         syntaxTokensByLinesCache.clear()


    internal var assertHandler: AssertHandler? {
        get {
            return assertHandlers[cacheKey]
        }
        set {
            assertHandlers[cacheKey] = newValue
        }
    }



    public func invalidateCache() {
        responseCache.invalidate(self)
        assertHandlerCache.invalidate(self)
        structureCache.invalidate(self)
        syntaxMapCache.invalidate(self)
        syntaxTokensByLinesCache.invalidate(self)
