@Override
  public @NotNull String getCanonicalText() {
    final PsiReference reference = chooseReference();
    return reference == null ? myReferences.get(0).getCanonicalText() : reference.getCanonicalText();
  }
@Override
  public @NotNull String getCanonicalText()