Boolean (@NotNull final PsiClassType classType) { PsiClassType.ClassResolveResult resolveResult = classType.resolveGenerics(); final PsiClass aClass = resolveResult.getElement(); if (aClass instanceof PsiTypeParameter) { myTypeParams.add((PsiTypeParameter)aClass); } if (aClass != null) { PsiSubstitutor substitutor = resolveResult.getSubstitutor(); for (final PsiTypeParameter parameter : PsiUtil.typeParametersIterable(aClass)) { PsiType psiType = substitutor.substitute(parameter); if (psiType != null) { psiType.accept(this); } } } return false; }