void (@NotNull Supplier<String> supplier) { Supplier<TextWithMnemonic> original = textWithMnemonicSupplier; Supplier<TextWithMnemonic> fallback = getTextWithMnemonic(supplier, true); textWithMnemonicSupplier = () -> { TextWithMnemonic result = original.get(); return result == null ? fallback.get() : result; }; }