@Nullable
  public SoyNode lastChildThatMatches(Predicate<SoyNode> condition) {
    int lastChildIndex = numChildren() - 1;
    while (lastChildIndex >= 0 && !condition.test(getChild(lastChildIndex))) {
      lastChildIndex--;
    }
    if (lastChildIndex >= 0) {
      return getChild(lastChildIndex);
    }
    return null;
  }
@ Nullable public SoyNode lastChildThatMatches ( Predicate < SoyNode > condition ) { int lastChildIndex = numChildren ( ) - 1 ; while ( lastChildIndex >= 0 && ! condition . test ( getChild ( lastChildIndex ) ) ) { lastChildIndex -- ; } if ( lastChildIndex >= 0 ) { return getChild ( lastChildIndex ) ; } return null ; }
Returns the template's last child node that matches the given condition.