@Override
  public boolean canShowRegexSearchWarning() {
    if (!myToggleRegularExpression.isSelected()) return false;

    String stringToFind = mySearchReplaceComponent.getSearchTextComponent().getText();

    // "pageSize / 10", because it's strictly shorter then even full page consisted of only 4-byte symbols and much longer then simple stringsToFind
    return stringToFind.length() > largeFileEditor.getPageSize() / 10 ||
           stringToFind.contains("*") ||
           stringToFind.contains("+") ||
           stringToFind.contains("{");
  }
@Override
  public boolean canShowRegexSearchWarning()