docs: public void updateEnabled(boolean interrupted) {
          for (int i = 0; i != interruptOnlyItems.size(); ++i) {
              JMenuItem item = interruptOnlyItems.get(i);
              item.setEnabled(interrupted);
          }
  
          for (int i = 0; i != runOnlyItems.size(); ++i) {
              JMenuItem item = runOnlyItems.get(i);
              item.setEnabled(!interrupted);
          }
      }