private boolean needSearchForTextOccurrences() {
    for (PsiElement element : myElements) {
      if (TextOccurrencesUtil.isSearchTextOccurrencesEnabled(element)) {
        return true;
      }
    }
    return false;
  }
private boolean needSearchForTextOccurrences()