Targets { public static Target someOf(Class<? extends Message> targetClass, Set<?> ids) { checkNotNull(targetClass); checkNotNull(ids); Target result = composeTarget(targetClass, ids, null); return result; } private  Targets(); static Target someOf(Class<? extends Message> targetClass, Set<?> ids); static Target allOf(Class<? extends Message> targetClass); @SuppressWarnings("CheckReturnValue") static Target composeTarget(Class<? extends Message> targetClass,
                                       @Nullable Iterable<?> ids,
                                       @Nullable Iterable<CompositeFilter> filters); static IdFilter acceptingOnly(Collection<?> identifiers); @SafeVarargs static TargetFilters acceptingOnly(I... id);  }
@Test @DisplayName("throw IAE for unsupported IDs") void throwIaeForUnsupportedIds() { assertThrows(IllegalArgumentException.class, () -> someOf(TaskId.class, ImmutableSet.of(new Object()))); }