@API(status = API.Status.STABLE)
    public <T> @NonNull Optional<T> inject(final @NonNull TypeToken<T> type) {
        if (this.commandManager == null) {
            throw new UnsupportedOperationException(
                    "Cannot retrieve injectable values from a command context that is not associated with a command manager"
            );
        }
        return this.commandManager.parameterInjectorRegistry().getInjectable(type, this, AnnotationAccessor.empty());
    }
Attempts to retrieve a value that has been registered to the associated command manager's
{@link ParameterInjectorRegistry}.

@param <T>  type to inject
@param type type to inject
@return optional that may contain the created value
cloud-core/src/main/java/org/incendo/cloud/context/CommandContext.java