public static void setToggleButtonSelected(AbstractButton button, boolean selected) {
		boolean isSelected = runSwing(() -> button.isSelected());
		if (isSelected != selected) {
			pressButton(button);
		}
	}
Ensures that the selected state of the button matches <code>selected</code>.
<p>
Note: this works for most toggle button implementations which are derived from
AbstractButton and relay on {@link AbstractButton#isSelected()} and
{@link AbstractButton#doClick()} for toggling, such as:
<ul>
	<li>{@link JCheckBox}</li>
 <li>{@link JRadioButton}</li>
 <li>{@link EmptyBorderToggleButton}</li>
</ul>
@param button the button to select
@param selected true to toggle the button to selected; false for de-selected
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java