boolean (final @NotNull Collection<T> collection, final ProcessingContext context) { if (collection.isEmpty()) { return false; } T last = null; for (final T t : collection) { last = t; } return elementPattern.accepts(last, context); }