return references.toArray(new PsiReference[references.size()]);
}
if (VarOrConstReference.MATCHER.accepts(this))
return new PsiReference[]{new VarOrConstReference(this), new PackageReference(this)};
if (psiElement(GoLiteralIdentifier.class).insideStarting(psiElement(GoPsiTypeName.class)).accepts(this))
return new PsiReference[]{new PackageReference(this)};
return PsiReference.EMPTY_ARRAY;