private static @NotNull PsiClassType createPsiType(@NotNull PsiClass psiClass) {
    PsiElementFactory factory = JavaPsiFacade.getElementFactory(psiClass.getProject());
    return factory.createType(psiClass);
  }
private static @NotNull PsiClassType createPsiType(@NotNull PsiClass psiClass)