code: public static Matcher newClass(final String className) {
      return new Matcher() {
        @Override public boolean matches(Node node, NodeMetadata metadata) {
          if (!node.isNew()) {
            return false;
          }
          JSType providedJsType = getJsType(metadata, className);
          if (providedJsType == null) {
            return false;
          }
  
          JSType jsType = node.getJSType();
          if (jsType == null) {
            return false;
          }
          jsType = jsType.restrictByNotNullOrUndefined();
          return areTypesEquivalentIgnoringGenerics(jsType, providedJsType);
        }
      };
    }
docs: Returns a Matcher that matches constructing objects of the provided class
  name. This will match the NEW node of the JS Compiler AST.
  @param className The name of the class to return matching NEW nodes.