PsiTypeParameter (PsiTypeParameter[] parameters, Project project) { final String extendsText = myBoundValue == null ? "" : " extends " + getCanonicalText(myBoundValue.getType(null, PsiManager.getInstance(project))); return JavaPsiFacade.getElementFactory(project).createTypeParameterFromText(myNewName + extendsText, null); }