void (int offset) { myPositionUpdated = true; PsiLanguageInjectionHost host = myTracker.myHostCopy; if (host != null) { InjectedLanguageManager instance = InjectedLanguageManager.getInstance(myTracker.myProject); PsiFile file = findInjectedFile(instance, host); offset = instance.mapUnescapedOffsetToInjected(file, offset); offset = instance.injectedToHost(file, offset); } myCaretOffset = offset; }