protected List<DockingActionIf> getStateActions() {
		updateStates();
		List<DockingActionIf> actions = new ArrayList<>(actionStates.size());
		for (ActionState<T> actionState : actionStates) {
			boolean isSelected = actionState.equals(currentState);
			DockingActionIf a = useCheckboxForIcons
					? new ActionStateToggleAction(actionState, isSelected)
					: new ActionStateAction(actionState, isSelected);
			boolean isEnabled = isStateEnabled(actionState);
			a.setEnabled(isEnabled);
			actions.add(a);
		}
		return actions;
	}
Check if the given state can be selected

@param state the state to check
@return true (the default) if selectable, false to disable
Ghidra/Framework/Docking/src/main/java/docking/menu/MultiStateDockingAction.java