Query<Result> () { return new AbstractQuery<Result>() { @Override protected boolean processResults(@NotNull Processor<? super Result> consumer) { return AbstractQuery.this.doProcessResults(consumer); } @Override public boolean forEach(@NotNull Processor<? super Result> consumer) { return processResults(consumer); } }; }