code: private void hideSuggestionsIfNecessary(final @NonNull QueryToken currentQuery,
                                              final @NonNull TokenSource source) {
          String queryTS = currentQuery.getTokenString();
          String currentTS = source.getCurrentTokenString();
          if (!isWaitingForResults(currentQuery) && queryTS != null && queryTS.equals(currentTS)) {
              mSuggestionsVisibilityManager.displaySuggestions(false);
          }
      }
docs: Hides the suggestions if there are no more incoming queries.
  
  @param currentQuery the most recent {@link QueryToken}
  @param source       the associated {@link TokenSource} to use for reference