code: public static Matcher enumDefinition() {
      return new Matcher() {
        @Override public boolean matches(Node node, NodeMetadata metadata) {
          JSType jsType = node.getJSType();
          return jsType != null && jsType.isEnumType();
        }
      };
    }
docs: Returns a Matcher that matches definitions of any enum.