Modify DOMUtil.testType() to return a Predicate accepting any Node type.
Add null annotation specificity.