void () { final boolean override = checkBox.isSelected(); if (Comparing.equal(isOverridden, override)) return; isOverridden = override; component.setEditable(override); component.setEnabled(override && checkBox.isEnabled()); if (override) { if (overrideText != null) component.setText(overrideText); } else { if (!StringUtil.isEmptyOrSpaces(component.getText())) overrideText = component.getText(); component.setText(pathProvider.getPath()); } }