code: function getElementForDirection( node )
  	{
  		while ( node && !( node.getName() in allGuardElements || node.is( 'body' ) ) )
  		{
  			var parent = node.getParent();
  			if ( !parent )
  				break;
  
  			node = parent;
  		}
  
  		return node;
  	}
docs: Returns element with possibility of applying the direction.
  @param node