Self (final @NotNull T o) { return with(new PatternCondition<T>("equalTo") { @Override public boolean accepts(final @NotNull T t, final ProcessingContext context) { return t.getManager().areElementsEquivalent(t, o); } }); }