code: function _updateCheckedState(name) {
          var mapping = _optionMapping[name];
          if (!mapping) {
              return;
          }
          CommandManager.get(mapping).setChecked(PreferencesManager.get(name));
      }
docs: @private
  
  Updates the command checked status based on the preference name given.
  
  @param {string} name Name of preference that has changed