public static ArrayList < Element > verifyPath ( Element root , ArrayList < Element > path ) { if ( root == path . get ( 0 ) ) return path ; return null ; }
asserts that a path s root is the waited element