docs: public static int parseInteger(String attrVal) {
          if (attrVal == null) {
              return Integer.MIN_VALUE;
          }
          Matcher m = INTEGER_PATTERN.matcher(attrVal);
          if (!m.matches()) {
              return Integer.MIN_VALUE;
          }
          try {
              return Integer.parseInt(m.group(1));
          } catch (NumberFormatException e) {
              return Integer.MIN_VALUE;
          }
      }