PsiClassType (@NotNull PsiClass containingClass, @NotNull PsiSubstitutor substitutor) { boolean isRawSubst = PsiUtil.isRawSubstitutor(containingClass, substitutor); return JavaPsiFacade.getElementFactory(containingClass.getProject()).createType(containingClass, isRawSubst ? PsiSubstitutor.EMPTY : substitutor); }