@Override
  public int getTextEndOffset(@NotNull PsiElement element) {
    final TextRange textRange = element.getTextRange();
    LOG.assertTrue(textRange != null, element);
    return textRange.getEndOffset();
  }
@Override
  public int getTextEndOffset(@NotNull PsiElement element)