PsiReference () { final PsiReference[] references = getReferences(); if (references.length == 1) { return references[0]; } if (references.length > 1) { return new PsiMultiReference(references, this); } return null; }