XmlEntityDecl (PsiFile file, String name) { CachedValue<XmlEntityDecl> cachedValue; synchronized(LOCK) { final Map<String, CachedValue<XmlEntityDecl>> cachingMap = getCachingMap(file); cachedValue = cachingMap.get(name); } return cachedValue != null ? cachedValue.getValue():null; }