Node (Object object, boolean validateChildren) { if (disposed || !(object instanceof Node node) || !isValidThread()) return null; if (isNodeRemoved(node)) return null; if (validateChildren) validateChildren(node); return node; }