package com.paritytrading.parity.client;

import java.util.ArrayList;
import java.util.List;

public class Errors extends DefaultEventVisitor {

    private List<Error> errors;

    private Errors() {
        errors = new ArrayList<>();
    }

    public static List<Error> collect(Events events) {
        Errors visitor = new Errors();

        events.accept(visitor);

        return visitor.getEvents();
    }

    private List<Error> getEvents() {
        return errors;
    }

    @Override
    public void visit(Event.OrderRejected event) {
        errors.add(new Error(event));
    }

}

@@ -87,23 +87,16 @@
 .List;%0A%0A
-public 
 class Er
@@ -234,23 +234,16 @@
  %7D%0A%0A    
-public 
 static L

Clean up 'Errors'