boolean (@NotNull PsiTypeParameter typeParameter, @NotNull PsiType type) { for (PsiClassType t : typeParameter.getExtendsListTypes()) { if (!t.isAssignableFrom(type)) { return false; } } return true; }