boolean updateRangeToPsi(@NotNull Segment pointerRange, PsiElement cachedElement) {
    Pair<Identikit.ByAnchor, PsiElement> pair = findAnchor(cachedElement);
    TextRange range = (pair != null ? pair.second : cachedElement).getTextRange();
    if (range != null && range.intersects(pointerRange)) {
      switchTo(cachedElement, pair);
      return true;
    }
    return false;
  }
boolean updateRangeToPsi(@NotNull Segment pointerRange, PsiElement cachedElement)