protected static <T extends AbstractOption<?, ?, ?>> T of(Class<?> type, String name) {
        requireNonNull(type, "type");
        requireNonNull(name, "name");

        final Pool pool = map.get(type);
        if (pool == null) {
            throw new NoSuchElementException(
                    '\'' + type.getName() + '#' + name + "' does not exist.");
        }

        @SuppressWarnings("unchecked")
        final T cast = (T) pool.get(name);
        return cast;
    }
Returns the option of the specified option type and name.

@return the option which is an instance of the specified {@code type} and
        which has the specified {@code name}.
core/src/main/java/com/linecorp/armeria/common/util/AbstractOption.java