public static Stream<String> getStaticFieldValuesAsStrings(Class type) {
    return Arrays.stream(type.getFields()).filter(field -> Modifier.isStatic(field.getModifiers())).map(field -> {
      try {
        return field.get(null).toString();
      } catch (IllegalAccessException e) {
        throw new IllegalStateException("Could not get value of a static field, " + field + ", in " + type, e);
      }
    });
  }
Get a stream of the accessible {@link String} values of the static fields in the provided {@link Class}.
@param type the {@link Class} to get static field values from.
@return a {@link Stream} of the static field value strings.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java