code: protected Number parseNumber(String text) {
          if (INTEGER_PATTERN.matcher(text).matches()) {
              return Integer.parseInt(text);
          }
  
          if (DOUBLE_PATTERN.matcher(text).matches()) {
              return Double.parseDouble(text);
          }
  
          if (FLOAT_PATTERN.matcher(text).matches()) {
              return Float.parseFloat(text);
          }
  
          return null;
      }
docs: Parses a number that matches the text, null if no matches
  @param text Text to be parsed as a number
  @return Number parsed, null if no match
  @see NumericPrompt#INTEGER_PATTERN
  @see NumericPrompt#DOUBLE_PATTERN
  @see NumericPrompt#FLOAT_PATTERN