docs: @NonNull
      private static ObservableTransformer<byte[], PresenterEvent> transformToPresenterEvent(Type type) {
          return observable -> observable.map(writtenBytes -> ((PresenterEvent) new ResultEvent(writtenBytes, type)))
                  .onErrorReturn(throwable -> new ErrorEvent(throwable, type));
      }