docs: static boolean isValidCardLength(
              @Nullable String cardNumber,
              @NonNull @CardBrand String cardBrand) {
          if (cardNumber == null || Card.UNKNOWN.equals(cardBrand)) {
              return false;
          }
  
          int length = cardNumber.length();
          switch (cardBrand) {
              case Card.AMERICAN_EXPRESS:
                  return length == LENGTH_AMERICAN_EXPRESS;
              case Card.DINERS_CLUB:
                  return length == LENGTH_DINERS_CLUB;
              default:
                  return length == LENGTH_COMMON_CARD;
          }
      }