PsiClassType (@NotNull PsiClass clazz, @Nullable PsiElement context, PsiType... parameters) { return JavaPsiFacade.getInstance( (context == null ? clazz : context).getProject() ).getElementFactory().createType(clazz, parameters); }