void (@NotNull List<? extends AnAction> actions) { myTextField.removeExtension(myHintExtension); myTextField.removeExtension(myWarningExtension); actions.stream().map(HintHelper::createRightActionExtension).forEach(it -> { addExtensionAsLast(it); myRightExtensions.add(it); }); }