else {
psiClass = (PsiClass) resolve;
substitutor = PsiSubstitutor.EMPTY;
}
if (psiClass != null) {
return new CandidateInfo(psiClass, substitutor);
}
else
return JavaResolveResult.EMPTY;
}
return JavaResolveResult.EMPTY;
}
else {
PsiElement scope = accessObject.getContext();
PsiElement lastParent = accessObject;
while (scope != null) {
if (scope instanceof PsiClass) {
if (scope instanceof PsiAnonymousClass) {
if (lastParent instanceof PsiExpressionList) {
lastParent = scope;
scope = scope.getContext();
continue;
}
}
return new CandidateInfo(scope, PsiSubstitutor.EMPTY);
}
lastParent = scope;
scope = scope.getContext();
}
return JavaResolveResult.EMPTY;