/**
  * @return true if the mailbox list of the current account hasn't been refreshed in the last
  *     {@link #MAILBOX_REFRESH_MIN_INTERVAL}.
  */
 @VisibleForTesting
 boolean shouldRefreshMailboxList() {
   if (mRefreshManager.isMailboxListRefreshing(mAccountId)) {
     return false;
   }
   final long nextRefreshTime =
       mRefreshManager.getLastMailboxListRefreshTime(mAccountId) + MAILBOX_REFRESH_MIN_INTERVAL;
   if (nextRefreshTime > mClock.getTime()) {
     return false;
   }
   return true;
 }
 /**
  * @return true if the inbox of the current account hasn't been refreshed in the last {@link
  *     #INBOX_AUTO_REFRESH_MIN_INTERVAL}.
  */
 @VisibleForTesting
 boolean shouldAutoRefreshInbox() {
   if (mInboxId == mMailboxId) {
     return false; // Current ID == inbox.  No need to auto-refresh.
   }
   if (mRefreshManager.isMessageListRefreshing(mInboxId)) {
     return false;
   }
   final long nextRefreshTime =
       mRefreshManager.getLastMessageListRefreshTime(mInboxId) + INBOX_AUTO_REFRESH_MIN_INTERVAL;
   if (nextRefreshTime > mClock.getTime()) {
     return false;
   }
   return true;
 }