void (CompletionParameters parameters) { if (CompletionUtil.shouldShowFeature(parameters, CodeCompletionFeatures.EDITING_COMPLETION_REPLACE) && myOffsetMap.getOffset(CompletionInitializationContext.IDENTIFIER_END_OFFSET) != myOffsetMap.getOffset(CompletionInitializationContext.SELECTION_END_OFFSET)) { String shortcut = KeymapUtil.getFirstKeyboardShortcutText(IdeActions.ACTION_CHOOSE_LOOKUP_ITEM_REPLACE); if (StringUtil.isNotEmpty(shortcut)) { addAdvertisement(CodeInsightBundle.message("completion.ad.use.0.to.overwrite", shortcut), null); } } }