code: @Override
      public List<Dashboard> getDashboardsByCollectorItems(Set<CollectorItem> collectorItems, CollectorType collectorType) {
          if (org.apache.commons.collections4.CollectionUtils.isEmpty(collectorItems)) {
              return new ArrayList<>();
          }
          List<ObjectId> collectorItemIds = collectorItems.stream().map(BaseModel::getId).collect(Collectors.toList());
          // Find the components that have these collector items
          List<com.capitalone.dashboard.model.Component> components = componentRepository.findByCollectorTypeAndItemIdIn(collectorType, collectorItemIds);
          List<ObjectId> componentIds = components.stream().map(BaseModel::getId).collect(Collectors.toList());
          return dashboardRepository.findByApplicationComponentIdsIn(componentIds);
      }
docs: Get all the dashboards that have the collector items
  
  @param collectorItems collector items
  @param collectorType  type of the collector
  @return a list of dashboards