void (@NotNull Supplier<TextWithMnemonic> textWithMnemonicSupplier) { if (changeSupport == null) { this.textWithMnemonicSupplier = textWithMnemonicSupplier; return; } String oldText = getText(); String oldTextWithSuffix = getText(true); int oldMnemonic = getMnemonic(); int oldIndex = getDisplayedMnemonicIndex(); this.textWithMnemonicSupplier = textWithMnemonicSupplier; fireObjectPropertyChange(PROP_TEXT, oldText, getText()); fireObjectPropertyChange(PROP_TEXT_WITH_SUFFIX, oldTextWithSuffix, getText(true)); fireObjectPropertyChange(PROP_MNEMONIC_KEY, oldMnemonic, getMnemonic()); fireObjectPropertyChange(PROP_MNEMONIC_INDEX, oldIndex, getDisplayedMnemonicIndex()); }