code: public static List<Tree> processPatternOnTrees(TregexPattern matchPattern, TsurgeonPattern p, Collection<Tree> inputTrees) {
      List<Tree> result = new ArrayList<Tree>();
      for (Tree tree : inputTrees)
        result.add(processPattern(matchPattern,p,tree));
      return result;
    }
docs: Applies {#processPattern} to a collection of trees.
  @param matchPattern A {@link TregexPattern} to be matched against a {@link Tree}.
  @param p A {@link TsurgeonPattern} to apply.
  @param inputTrees The input trees to be processed
  @return A List of the transformed trees