public @Nullable K key(final @NotNull V value) {
    return this.valueToKey.get(value);
  }
Gets the key for a value.

@param value the value
@return the key
@since 4.0.0
api/src/main/java/net/kyori/adventure/util/Index.java