private static boolean makesSenseToSearch(@NotNull String word, @NotNull SearchScope searchScope) {
    if (searchScope instanceof LocalSearchScope && ((LocalSearchScope)searchScope).getScope().length == 0) {
      return false;
    }
    return !SearchScope.isEmptyScope(searchScope) && !StringUtil.isEmpty(word);
  }
private static boolean makesSenseToSearch(@NotNull String word, @NotNull SearchScope searchScope)