@Override
	public boolean isAncestor(final TreeNode otherNode) {
		if (otherNode != null) {
			for (TreeNode node = getParent(); node != null; node = node.getParent()) {
				if (node == otherNode) {
					return true;
				}
			}
		}

		return false;
	}
@ Override public boolean isAncestor ( final TreeNode otherNode ) { if ( otherNode != null ) { for ( TreeNode node = getParent ( ) ; node != null ; node = node . getParent ( ) ) { if ( node == otherNode ) { return true ; } } } return false ; }
{@inheritDoc}