JavaResolveResult (@NotNull PsiExpression expression) { if (expression instanceof PsiSuperExpression) return JavaResolveResult.EMPTY; PsiType type = expression.getType(); JavaResolveResult accessObject = getAccessObjectClass(type, expression); if (accessObject != null) return accessObject; if (type == null && expression instanceof PsiReferenceExpression) { JavaResolveResult resolveResult = ((PsiReferenceExpression)expression).advancedResolve(false); if (resolveResult.getElement() instanceof PsiClass) { return resolveResult; } } return JavaResolveResult.EMPTY; }