@Override
  public void onEscapePressed() {
    if (lastExecutedCloseSearchTask != null
        && !lastExecutedCloseSearchTask.isShouldStop()
        && !lastExecutedCloseSearchTask.isFinished()) {
      stopSearchTaskIfItExists();
      if (lastExecutedCloseSearchTask != null) {
        setNewStatusText(EditorBundle.message("large.file.editor.message.stopped.by.user"));
      }
    }
    else {
      stopSearchTaskIfItExists();
      IdeFocusManager
        .getInstance(largeFileEditor.getProject())
        .requestFocus(largeFileEditor.getEditor().getContentComponent(), false);
      largeFileEditor.getEditorModel().setHighlightingCloseSearchResultsEnabled(false);
      if (largeFileEditor.getEditor().getHeaderComponent() instanceof SearchReplaceComponent) {
        largeFileEditor.getEditor().setHeaderComponent(null);
      }
    }
  }
@Override
  public void onEscapePressed()