code: function _setContextMenuItemsVisible(enabled, items) {
          items.forEach(function (item) {
              CommandManager.get(item).setEnabled(enabled);
          });
      }
docs: Disables menu items present in items if enabled is true.
  enabled is true if file is saved and present on user system.
  @param {boolean} enabled
  @param {array} items