public static boolean isSearchForTextOccurrencesAvailable(@NotNull PsiElement element, boolean isSingleFile, @Nullable FindUsagesHandlerBase handler) {
    return !isSingleFile && handler != null && handler.isSearchForTextOccurrencesAvailable(element, false);
  }
public static boolean isSearchForTextOccurrencesAvailable(@NotNull PsiElement element, boolean isSingleFile, @Nullable FindUsagesHandlerBase handler)