docs: private void checkElementReferences(
          final CmsContainerPageElementPanel element,
          final AsyncCallback<CmsRemovedElementStatus> callback) {
  
          ReferenceCheckVisitor visitor = new ReferenceCheckVisitor(element);
          processPageContent(visitor);
          if (visitor.hasReferences()) {
              // Don't need to ask the server because we already know we have other references in the same page
              CmsRpcAction<CmsListInfoBean> infoAction = new CmsRpcAction<CmsListInfoBean>() {
  
                  @Override
                  public void execute() {
  
                      start(200, true);
                      CmsCoreProvider.getVfsService().getPageInfo(new CmsUUID(getServerId(element.getId())), this);
                  }
  
                  @Override
                  protected void onResponse(CmsListInfoBean result) {
  
                      stop(false);
                      callback.onSuccess(new CmsRemovedElementStatus(null, result, false, null));
                  }
              };
              infoAction.execute();
          } else {
              CmsRpcAction<CmsRemovedElementStatus> getStatusAction = new CmsRpcAction<CmsRemovedElementStatus>() {
  
                  @Override
                  public void execute() {
  
                      start(200, true);
                      getContainerpageService().getRemovedElementStatus(
                          element.getId(),
                          CmsCoreProvider.get().getStructureId(),
                          this);
                  }
  
                  @Override
                  public void onResponse(final CmsRemovedElementStatus status) {
  
                      stop(false);
                      callback.onSuccess(status);
                  }
  
              };
              getStatusAction.execute();
  
          }
      }