docs: protected HealthLevelOfDetail levelOfDetail(@Nullable Principal principal) {
          boolean showDetails = false;
          switch (detailsVisible) {
              case AUTHENTICATED:
                  showDetails = principal != null;
                  break;
              case ANONYMOUS:
                  showDetails = true;
              default:
                  // no-op
          }
          if (showDetails) {
              return HealthLevelOfDetail.STATUS_DESCRIPTION_DETAILS;
          } else {
              return HealthLevelOfDetail.STATUS;
          }
      }