PsiType (@NotNull PsiClassType classType) { PsiClass aClass = classType.resolve(); if (aClass == null) { return classType; } if (aClass instanceof PsiTypeParameter) { return rawTypeForTypeParameter((PsiTypeParameter)aClass); } return JavaPsiFacade.getElementFactory(aClass.getProject()).createType(aClass); }