EditorSearchSession (@NotNull Editor editor, @NotNull FindModel findModel, @NotNull Project project) { EditorSearchSession session = new EditorSearchSession(editor, project, findModel); editor.setHeaderComponent(session.getComponent()); return session; }