GitCommandResult (@NotNull GitLineHandler handler) { return run(handler, new OutputCollector() { @Override protected void outputLineReceived(@NotNull String line) { } @Override protected void errorLineReceived(@NotNull String line) { addErrorLine(line); } }); }