docs: public int getIndexByString(String key) {
          int index = -1;
          for (T value : values) {
              index++;
              if (keyFactory.generateKey(value).equals(key)) {
                  return index;
              }
          }
          return index;
      }