Maybe this should be an overloaded method with an extra parameter that indicates which types to exclude. Something like:
`searchByProjectId(Long projectId, EntityStatus ... exclude)`

Also, in general we need to unify the 'search' terminology, we have things like find, search, get. Maybe each of those has its own meaning.