@NotNull
  @Override
  protected TextRange getRangeToRename(@NotNull PsiReference reference) {
    TextRange range = getReferenceNameRange(reference.getElement());
    return range != null ? range : super.getRangeToRename(reference);
  }
@NotNull
  @Override
  protected TextRange getRangeToRename(@NotNull PsiReference reference)