docs: private boolean shouldShowInContext(CmsContainerElementBean element, String contextKey) {
  
          if (contextKey == null) {
              return true;
          }
  
          try {
              if ((element.getResource() != null)
                  && !OpenCms.getTemplateContextManager().shouldShowType(
                      contextKey,
                      OpenCms.getResourceManager().getResourceType(element.getResource().getTypeId()).getTypeName())) {
                  return false;
              }
          } catch (CmsLoaderException e) {
              // ignore and log
              LOG.error(e.getLocalizedMessage(), e);
          }
          Map<String, String> settings = element.getSettings();
          if (settings == null) {
              return true;
          }
          String contextsAllowed = settings.get(CmsTemplateContextInfo.SETTING);
          if (contextsAllowed == null) {
              return true;
          }
          if (contextsAllowed.equals(CmsTemplateContextInfo.EMPTY_VALUE)) {
              return false;
          }
  
          List<String> contextsAllowedList = CmsStringUtil.splitAsList(contextsAllowed, "|");
          if (!contextsAllowedList.contains(contextKey)) {
              return false;
          }
          return true;
      }