MavenLogEntryReader (BuildOutputInstantReader reader) { return new MavenLogEntryReader() { @Override public void pushBack() { reader.pushBack(); } @Nullable @Override public MavenLogEntry readLine() { return nextLine(reader.readLine()); } }; }