question: private boolean hasAsParent ( INode child , ICompositeNode directParent ) { INode parent = child ; while ( parent != null ) { if ( parent == directParent ) return true ; parent = parent . getParent ( ) ; } return false ; }
target:  Test if directParent is in parent-chain.