void (boolean shouldImport) { if (!myHintShown && !shouldImport) { String shortcut = KeymapUtil.getFirstKeyboardShortcutText(IdeActions.ACTION_SHOW_INTENTION_ACTIONS); if (StringUtil.isNotEmpty(shortcut)) { CompletionService.getCompletionService().setAdvertisementText( JavaBundle.message("to.import.a.method.statically.press.0", shortcut)); } myHintShown = true; } }