public static void recycleNodes(Collection<AccessibilityNodeInfoCompat> nodes){
  if (nodes == null) {
    return;
  }
  for (  AccessibilityNodeInfoCompat node : nodes) {
    if (node != null) {
      node.recycle();
    }
  }
  nodes.clear();
}

public static void recycleNodes ( Collection < AccessibilityNodeInfoCompat > nodes ) { if ( nodes == null ) { return ; } for ( AccessibilityNodeInfoCompat node : nodes ) { if ( node != null ) { node . recycle ( ) ; } } nodes . clear ( ) ; }
recycles the given nodes .
