TextRange (@NotNull TextRange range) { PsiLanguageInjectionHost host = myTracker.myHostCopy; if (host != null) { InjectedLanguageManager instance = InjectedLanguageManager.getInstance(myTracker.myProject); PsiFile file = findInjectedFile(instance, host); int start = instance.mapUnescapedOffsetToInjected(file, range.getStartOffset()); int end = instance.mapUnescapedOffsetToInjected(file, range.getEndOffset()); range = instance.injectedToHost(file, TextRange.create(start, end)); } return range; }