private void removeSelectedUsers() {

			ArrayList<User> users = new ArrayList<>();

			// Remove all selected users, except the user entry that represents the one
			// doing the removing.
			for (int selectedRow : table.getSelectedRows()) {
				User user = tableModel.getRowObject(selectedRow);
				if (user.getName().equals(currentUser)) {
					continue;
				}
				users.add(user);
			}

			tableModel.removeUsers(users);
		}
Removes only the selected users from the table.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ProjectAccessPanel.java