> the Views looked at is only the views returned by `Jenkins.getInstance().getViews()`

Right, which are the views at top level. Each folder has its own set of views. Starting from `Job`, you could check if its parent is a `ViewGroup`.

> if I hold the Job and do a `View.contains()` will that work in all cases?

Yes, I think so.