private static boolean matches(Pattern pattern,String formattedStackTrace){
  Matcher matcher=pattern.matcher(formattedStackTrace);
  return matcher.matches();
}

private static boolean matches ( Pattern pattern , String formattedStackTrace ) { Matcher matcher = pattern . matcher ( formattedStackTrace ) ; return matcher . matches ( ) ; }
indicate if this stack trace matches the given pattern
