PsiClassType (@NotNull PsiClass psiClass) { final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(psiClass.getProject()); if (psiClass.hasTypeParameters()) { PsiType[] wildcardTypes = new PsiType[psiClass.getTypeParameters().length]; Arrays.fill(wildcardTypes, PsiWildcardType.createUnbounded(psiClass.getManager())); return elementFactory.createType(psiClass, wildcardTypes); } return elementFactory.createType(psiClass); }