void (CloseSearchTask caller, long lastScannedPageNumber) { ApplicationManager.getApplication().invokeLater(() -> { SearchTaskOptions options = caller.getOptions(); if (!caller.isShouldStop()) { if (options.loopedPhase) { setNewStatusText(EditorBundle.message("large.file.editor.message.search.is.completed.and.no.more.matches")); mySearchReplaceComponent.setNotFoundBackground(); if (!(largeFileEditor.getEditor().getHeaderComponent() instanceof SearchReplaceComponent)) { String message = EditorBundle.message("large.file.editor.message.some.string.not.found", options.stringToFind); showSimpleHintInEditor(message, largeFileEditor.getEditor()); } } else { notFoundState = true; AnAction action = ActionManager.getInstance().getAction( options.searchForwardDirection ? IdeActions.ACTION_FIND_NEXT : IdeActions.ACTION_FIND_PREVIOUS); String shortcutsText = KeymapUtil.getFirstKeyboardShortcutText(action); String message; setNewStatusText(""); message = !shortcutsText.isEmpty() ? options.searchForwardDirection ? EditorBundle.message("large.file.editor.some.string.not.found.press.some.shortcut.to.search.from.the.start", options.stringToFind, shortcutsText) : EditorBundle.message("large.file.editor.some.string.not.found.press.some.shortcut.to.search.from.the.end", options.stringToFind, shortcutsText) : options.searchForwardDirection ? EditorBundle.message("large.file.editor.some.string.not.found.perform.some.action.again.to.search.from.start", options.stringToFind, action.getTemplatePresentation().getText()) : EditorBundle.message("large.file.editor.some.string.not.found.perform.some.action.again.to.search.from.end", options.stringToFind, action.getTemplatePresentation().getText()); showSimpleHintInEditor(message, largeFileEditor.getEditor()); } } }); }