void () { PsiClass classA = createClass("class A<T> { static class B<X> {} }"); Iterator<PsiTypeParameter> iterator = PsiUtil.typeParametersIterator(classA.getInnerClasses()[0]); compareIterator(iterator, "X"); }