PsiTypeParameter (final PsiClass aClass, final String name) { for (PsiTypeParameter typeParameter : PsiUtil.typeParametersIterable(aClass)) { if (name.equals(typeParameter.getName())) return typeParameter; } return null; }