void (final @NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); EditorSearchSession search = e.getRequiredData(EditorSearchSession.SESSION_KEY); if (project.isDisposed()) return; PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(search.getEditor().getDocument()); if (file == null) return; FindModel oldModel = FindManager.getInstance(project).getFindInFileModel(); FindModel newModel = oldModel.clone(); String text = search.getTextInField(); if (StringUtil.isEmpty(text)) return; newModel.setStringToFind(text); FindUtil.findAllAndShow(project, file, newModel); }