void () { ApplicationManager.getApplication().assertWriteAccessAllowed(); // reset previously calculated base contexts for (LiveTemplateContext liveTemplateContext : myState.myLiveTemplateIds.values()) { liveTemplateContext.getTemplateContextType().clearCachedBaseContextType(); } myState = loadLiveTemplateContextsNoLock(); }