code: public Set<String> getConstantNames() {
          return constants.stream()
                  .map(EnumConstant::getName)
                  .collect(Collectors.toSet());
      }
docs: Returns a list of all enum constant names.