> it does this to check if the Job is in the checked View

Right, but the code is only checking views at top level, not views in folders. (And in recent versions of Jenkins, views can contain jobs in subfolders of the view group owner, meaning that `getItem` on the job’s simple name would be null even when the view contains it.)

> non Job Tasks are those generally lightweights?

Typically, yes.