int (@NotNull PsiElement support) { PsiElement current = support; while (current.getNextSibling() instanceof OuterLanguageElement) { current = current.getNextSibling(); } return current.getTextRange().getEndOffset(); }