code: public static <L, S extends Session<L>> InventoryEvent<L, S> discovery(
              EndpointService<L, S> service,
              ResourceManager<L> resourceManager,
              ResourceTypeManager<L> resourceTypeManager,
              List<Resource<L>> addedOrModified,
              List<Resource<L>> removed) {
          return new InventoryEvent<>(
                  service,
                  resourceManager,
                  Optional.of(resourceTypeManager),
                  addedOrModified,
                  removed);
      }
docs: Build an {@link InventoryEvent} for added or modified resources.
  
  @param service a service that provides details such as feed ID and endpoint information that helps
  identify the resources in the event, plus has methods that can be used to monitor
  the resources in the event.
  @param resourceManager the resources associated with the event
  @param resourceTypeManager the resource types associated with the event
  @param addedOrModified list of added or modified resources
  @param removed list of removed resources