code: private void resetMenuItems(boolean enable) {
          for (int i = 0; i < severityItemList.length; ++i) {
              MenuItem menuItem = severityItemList[i];
              menuItem.setEnabled(enable);
              menuItem.setSelection(false);
          }
      }
docs: Reset menu items so they are unchecked.
  
  @param enable
  true if menu items should be enabled, false if they should be
  disabled