code: boolean isMessageName(String identifier, boolean isNewStyleMessage) {
      return identifier.startsWith(MSG_PREFIX) &&
          (style == JsMessage.Style.CLOSURE || isNewStyleMessage ||
           !identifier.endsWith(DESC_SUFFIX));
    }
docs: Returns whether the given JS identifier is a valid JS message name.