docs: private boolean isVisibleAndWebDisplayable(RepositoryResource resource) {
          if (resource instanceof WebDisplayable) {
              DisplayPolicy displayPolicy = ((WebDisplayable) resource).getWebDisplayPolicy();
              return displayPolicy == DisplayPolicy.VISIBLE || displayPolicy == null;
          } else {
              return false;
          }
      }