docs: public Optional<Integer> getCurrentLine() {
      if (currentSegment == null) {
        return Optional.empty();
      }
  
      return Optional.of(currentSegment.getSource().getRow(currentSegment.getBegin()));
    }