I suggest to have more parameters, i.e. `bool searchOutside`, `bool includeIntersected`.