Reference<PsiElement> (PsiReference ref, boolean physical, boolean incompleteCode) { synchronized (PsiLock.LOCK) { int index = getIndex(physical, incompleteCode); final Reference<PsiElement> reference = (Reference<PsiElement>)myResolveMaps[index].get(ref); if(reference == null) return null; return reference; } }