} else {
virtualFile = getVirtualFile(psiElement, jumpFileName, cakeConfig, CakeIdentifier.Element);
}
}
if (virtualFile != null && textRange != null) {
PsiReference ref = new ClassReference(
virtualFile,
cursorText.substring(textRange.getStartOffset(), textRange.getEndOffset()),
psiElement,
textRange,
psiElement.getProject(),
virtualFile);
return new PsiReference[]{ref};
}
return PsiReference.EMPTY_ARRAY;
}
ArrayList<PsiReference> refList = new ArrayList<PsiReference>();
for (PhpClass phpClass : phpClasses) {
if (phpClass != null && textRange != null) {
PsiReference ref = new ClassReference(
phpClass.getContainingFile().getVirtualFile(),
cursorText.substring(textRange.getStartOffset(), textRange.getEndOffset()),
psiElement,
textRange,
psiElement.getProject(),