private static Map<Token,Matcher> createMatchers(Map<Token,Pattern> patterns,CharSequence charSequence){
  Map<Token,Matcher> matchers=new HashMap<>();
  for (  Token token : patterns.keySet()) {
    Pattern pattern=patterns.get(token);
    Matcher matcher=pattern.matcher(charSequence);
    matchers.put(token,matcher);
  }
  return matchers;
}

private static Map < Token , Matcher > createMatchers ( Map < Token , Pattern > patterns , CharSequence charSequence ) { Map < Token , Matcher > matchers = new HashMap < > ( ) ; for ( Token token : patterns . keySet ( ) ) { Pattern pattern = patterns . get ( token ) ; Matcher matcher = pattern . matcher ( charSequence ) ; matchers . put ( token , matcher ) ; } return matchers ; }
creates a map from tokens to regex matchers for the given charsequence , given a map from tokens to regex patterns ( and the charsequence ) .
