BlockTreeNode (PsiElement element) { HashMap<PsiElement, BlockTreeNode> psiToBlockMap = myPsiToBlockMap; BlockTreeNode result = psiToBlockMap == null ? null : psiToBlockMap.get(element); if (result == null) { TextRange rangeInHostFile = InjectedLanguageManager.getInstance(myProject).injectedToHost(element, element.getTextRange()); result = findBlockNode(rangeInHostFile); } return result; }