docs: protected Panel createResourceListPanel(String caption, List<CmsResource> resources) {
  
          Panel result = null;
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(caption)) {
              result = new Panel();
          } else {
              result = new Panel(caption);
          }
          result.addStyleName("v-scrollable");
          result.setSizeFull();
          VerticalLayout resourcePanel = new VerticalLayout();
          result.setContent(resourcePanel);
          resourcePanel.addStyleName(OpenCmsTheme.REDUCED_MARGIN);
          resourcePanel.addStyleName(OpenCmsTheme.REDUCED_SPACING);
          resourcePanel.setSpacing(true);
          resourcePanel.setMargin(true);
          for (CmsResource resource : resources) {
              resourcePanel.addComponent(new CmsResourceInfo(resource));
          }
          return result;
      }