static boolean isChecked(final JCheckBox checkBox) { ret checkBox != null && (bool) swing(func { checkBox.isSelected() }); }