public @Nullable Option findOption(@NotNull Object key) {
    String keyToLookup = key instanceof Enum<?> e ? e.name() : key.toString();
    return ContainerUtil.find(options, opt -> opt.key().equals(keyToLookup));
  }
public @Nullable Option findOption(@NotNull Object key)