docs: public CmsRemovedElementStatus internalGetRemovedElementStatus(CmsUUID structureId, CmsUUID containerpageId)
      throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsResource elementResource = cms.readResource(structureId, CmsResourceFilter.IGNORE_EXPIRATION);
          boolean hasWritePermissions = cms.hasPermissions(
              elementResource,
              CmsPermissionSet.ACCESS_WRITE,
              false,
              CmsResourceFilter.ALL);
          boolean isSystemResource = elementResource.getRootPath().startsWith(CmsResource.VFS_FOLDER_SYSTEM + "/");
          CmsRelationFilter relationFilter = CmsRelationFilter.relationsToStructureId(structureId);
          List<CmsRelation> relationsToElement = cms.readRelations(relationFilter);
          Iterator<CmsRelation> iter = relationsToElement.iterator();
  
          // ignore XML_STRONG (i.e. container element) relations from the container page, this must be checked on the client side.
          while (iter.hasNext()) {
              CmsRelation relation = iter.next();
              if ((containerpageId != null)
                  && containerpageId.equals(relation.getSourceId())
                  && relation.getType().equals(CmsRelationType.XML_STRONG)) {
                  iter.remove();
              }
          }
          ElementDeleteMode elementDeleteMode = null;
          CmsResource pageResource = cms.readResource(containerpageId, CmsResourceFilter.IGNORE_EXPIRATION);
          CmsADEConfigData adeConfig = OpenCms.getADEManager().lookupConfiguration(cms, pageResource.getRootPath());
          CmsResourceTypeConfig typeConfig = adeConfig.getResourceType(
              OpenCms.getResourceManager().getResourceType(elementResource).getTypeName());
  
          if (typeConfig != null) {
              elementDeleteMode = typeConfig.getElementDeleteMode();
          }
  
          boolean hasNoRelations = relationsToElement.isEmpty();
          boolean deletionCandidate = hasNoRelations && hasWritePermissions && !isSystemResource;
          CmsListInfoBean elementInfo = CmsVfsService.getPageInfo(cms, elementResource);
          return new CmsRemovedElementStatus(structureId, elementInfo, deletionCandidate, elementDeleteMode);
      }