Boolean (@NotNull PsiClassType classType) { final PsiClass psiClass = classType.resolve(); if (psiClass instanceof PsiTypeParameter && PsiTreeUtil.isAncestor(((PsiTypeParameter)psiClass).getOwner(), method, true)) { return false; } if (Comparing.strEqual(typeParameterName, classType.getCanonicalText())) { return true; } for (PsiType p : classType.getParameters()) { if (p.accept(this)) return true; } return false; }