code: protected boolean isButtonEnabledForSelectedHistoryReferences(List<HistoryReference> historyReferences) {
          for (HistoryReference historyReference : historyReferences) {
              if (historyReference != null && !isButtonEnabledForHistoryReference(historyReference)) {
                  return false;
              }
          }
          return true;
      }
docs: Tells whether or not the button should be enabled for the given selected messages.
  <p>
  By default, it returns {@code true} unless the method {@code isButtonEnabledForHistoryReference(HistoryReference)}
  returns false for one of the selected messages.
  </p>
  
  @param historyReferences the selected messages in the message container
  @return {@code true} if the button should be enabled for the given selected messages, {@code false} otherwise.
  @see #isButtonEnabledForHistoryReference(HistoryReference)