docs: private boolean hasCompatibleSearchData(
          CmsGalleryDataBean originalGalleryData,
          CmsGalleryDataBean data,
          CmsGallerySearchBean search) {
  
          Set<String> originalUsableTypes = Sets.newHashSet();
          Set<String> usableTypes = Sets.newHashSet();
          for (CmsResourceTypeBean type : originalGalleryData.getTypes()) {
              if (!type.isDeactivated()) {
                  originalUsableTypes.add(type.getType());
              }
          }
          for (CmsResourceTypeBean type : data.getTypes()) {
              if (!type.isDeactivated()) {
                  usableTypes.add(type.getType());
              }
          }
          if (!usableTypes.containsAll(originalUsableTypes)) {
              return false;
          }
          return true;
      }