code: public final void increaseWrittenBytes(int increment, long currentTime) {
          if (increment <= 0) {
              return;
          }
  
          writtenBytes += increment;
          lastWriteTime = currentTime;
          idleCountForBoth.set(0);
          idleCountForWrite.set(0);
  
          if (getService() instanceof AbstractIoService) {
              getService().getStatistics().increaseWrittenBytes(increment, currentTime);
          }
  
          increaseScheduledWriteBytes(-increment);
      }
docs: TODO Add method documentation