CollectionPattern<T> (final int size) { return with(new PatternCondition<Collection<T>>("atLeast") { @Override public boolean accepts(final @NotNull Collection<T> ts, final ProcessingContext context) { return ts.size() >= size; } }); }