renderSettings(settings, onChange) {
    const defaultOptions = this.getDefaultOptions();
    const settingsConfiguration = this._getSettingsConfiguration(
      defaultOptions,
    );
    if (!settingsConfiguration) {
      return null;
    }

    settings = settings == null ?
      defaultOptions :
      this._mergeDefaultOptions(settings, defaultOptions);

    return (
      <SettingsRenderer
        settingsConfiguration={settingsConfiguration}
        parserSettings={settings}
        onChange={onChange}
      />
    );
  }
This method is called when the settingds UI is rendered. It is passed the
current parser settings and a callback that should be called with the
updated settings object.