void () { synchronized (CACHE_LOCK) { myFileDataCache.values().forEach(fileData -> { SoftReference<CodeStyleCachedValueProvider> providerRef = fileData.getUserData(PROVIDER_KEY); CodeStyleCachedValueProvider provider = providerRef != null ? providerRef.get() : null; if (provider != null) { provider.cancelComputation(); } }); myFileDataCache.clear(); myRemoveQueue.clear(); } }