code: public static ArrayList<Element> isDescendant( Element parent, Element maybeDescendant )
  	{
  		ArrayList<Element> res = new ArrayList<>();
  		
  		Element cur = maybeDescendant;
  		
  		while( cur != null )
  		{
  			res.add( 0, cur );
  			
  			if( cur == parent )
  				return res;
  			
  			cur = cur.getParentElement();
  		}
  		
  		return null;
  	}
docs: If the parent Element is an ancestor of the maybeDescendant element,
  this method returns the path from which the maybeDescendant can be reached
  when starting from the parent.<br/>
  If the maybeDescendant is not a descendant, the method returns null
  
  @param parent The tested parent Element
  @param maybeDescendant The tested descendant
  @return