boolean (PsiTypeParameterListOwner method, PsiType paramType) { if (paramType instanceof PsiWildcardType) return isTypeParameterType(method, ((PsiWildcardType)paramType).getBound()); final PsiClass psiClass = PsiUtil.resolveClassInType(paramType); //accept ellipsis here if (psiClass instanceof PsiTypeParameter && ((PsiTypeParameter)psiClass).getOwner() == method) return true; return false; }