code: public static List<Pattern> getPatternsFromStrings(List<String> strings) {
      List<Pattern> patterns = Lists.newArrayList();
      for (String s : strings) {
        patterns.add(Pattern.compile(s));
      }
      return patterns;
    }
docs: Convert a list of Strings to a list of Patterns.