private void terminateCheckout(int[] rows) {

		Set<ItemCheckoutStatus> toTerminate = new HashSet<>();
		for (int row : rows) {
			ItemCheckoutStatus item = tableModel.getRowObject(row);
			toTerminate.add(item);
		}

		for (ItemCheckoutStatus item : toTerminate) {
			int result = OptionDialog.showYesNoDialog(this, "Confirm Terminate Checkout",
				"Are you sure want to terminate the checkout for " + item.getUser() + ", version " +
					item.getCheckoutVersion() + "?");
			if (result == OptionDialog.CANCEL_OPTION) {
				return;
			}

			if (result == OptionDialog.OPTION_ONE) {

				try {
					domainFile.terminateCheckout(item.getCheckoutId());
				}
				catch (IOException e) {
					ClientUtil.handleException(tool.getProject().getRepository(), e,
						"Terminate Checkout", this);
					tableModel.refresh(new ItemCheckoutStatus[0]);
				}
			}
		}
	}
Constructor
@param parent parent dialog
@param tool tool to get project data for adding a listener
@param user user that is logged in
@param domainFile domain file to view checkouts
@param checkouts the checkouts to show
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/CheckoutsPanel.java