RangeMarker (final PsiElement element) { TextRange range = InjectedLanguageManager.getInstance(element.getProject()).injectedToHost(element, element.getTextRange()); return myDocument.createRangeMarker(range); }