@Override
  public @NotNull List<PsiReference> getReferences() {
    return ContainerUtil.concat(myReferences,
                                it -> it instanceof PsiReferencesWrapper ?
                                      ((PsiReferencesWrapper)it).getReferences() :
                                      Collections.singleton(it)
    );
  }
@Override
  public @NotNull List<PsiReference> getReferences()