public static String withNodeInfo(AccessibilityNodeInfo nodeInfo){
  if (nodeInfo == null) {
    return null;
  }
  return String.format(":[text: %s; contentDescription: %s]",nodeInfo.getText(),nodeInfo.getContentDescription());
}

public static String withNodeInfo ( AccessibilityNodeInfo nodeInfo ) { if ( nodeInfo == null ) { return null ; } return String . format ( ":[text: %s; contentDescription: %s]" , nodeInfo . getText ( ) , nodeInfo . getContentDescription ( ) ) ; }
return the identify string of a node
