package com.dhemery.ancestors.main;

import java.util.function.Consumer;

import static com.dhemery.ancestors.gedcom.GedcomLoader.TREE;

public class AggregateOperations {
    private static final Consumer<Object> PRINT = new Print();

    public static void main(String[] ignored) {
        TREE.people().forEach(PRINT);
    }

    private static class Print implements Consumer<Object> {
        @Override
        public void accept(Object item) {
            System.out.println(item);
        }
    }
}

@@ -34,45 +34,8 @@
 n;%0A%0A
-import java.util.function.Consumer;%0A%0A
 impo
@@ -132,72 +132,8 @@
 s %7B%0A
-    private static final Consumer%3CObject%3E PRINT = new Print();%0A%0A
     
@@ -210,156 +210,8 @@
 ach(
-PRINT);%0A    %7D%0A%0A    private static class Print implements Consumer%3CObject%3E %7B%0A        @Override%0A        public void accept(Object item) %7B%0A            
 Syst
@@ -220,33 +220,19 @@
 .out
-.
+::
 println
-(item);%0A        %7D
+);
 %0A   

Remove Print class.