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