@Override
  public @NotNull TextRange getRangeInElement() {
    TextRange range = getRangeInElementIfSameForAll();
    if (range != null) return range;

    PsiReference chosenRef = chooseReference();
    return getReferenceRange(chosenRef, myElement);
  }
@Override
  public @NotNull TextRange getRangeInElement()