docs: protected Constructor getConstructor(Class type) {
          try {
              return type.getConstructor(String.class);
          }
          catch (NoSuchMethodException e) {
              throw new RuntimeException(
                      "Unable to find a constructor that accepts"
                      + " a single String argument in the "
                      + type.getName() + " class.", e);
          }
      }