private static PsiClassType.ClassResolveResult resolveClass(@Nullable PsiType psiType) {
    return psiType instanceof PsiClassType ? ((PsiClassType)psiType).resolveGenerics() : PsiClassType.ClassResolveResult.EMPTY;
  }
private static PsiClassType.ClassResolveResult resolveClass(@Nullable PsiType psiType)