docs: public void setShouldShowError(boolean shouldShowError) {
          if (mErrorMessage != null && mErrorMessageListener != null) {
              String errorMessage = shouldShowError ? mErrorMessage : null;
              mErrorMessageListener.displayErrorMessage(errorMessage);
              mShouldShowError = shouldShowError;
          } else {
              mShouldShowError = shouldShowError;
              if (mShouldShowError) {
                  setTextColor(mErrorColor);
              } else {
                  setTextColor(mCachedColorStateList);
              }
  
              refreshDrawableState();
          }
      }