Module getModule(boolean isEnabled) {
        Supplier<Module> targetModuleProvider = isEnabled ? this.enabledModuleProvider : this.disabledModuleProvider;
        return targetModuleProvider == null ? null : targetModuleProvider.get();
    }
Retrieve the associated configuration changes as a module instance if possible (depending on particular setting/option: may return null).

@param isEnabled whether the option is currently enabled
@return a module instance representing this setting/option's associated configurations (may be null)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/Option.java