code: protected void addLineageSourceInfo(WorkUnit workUnit, State state) {
      if (!lineageInfo.isPresent()) {
        log.info("Lineage is not enabled");
        return;
      }
  
      String platform = state.getProp(ConfigurationKeys.SOURCE_FILEBASED_PLATFORM, DatasetConstants.PLATFORM_HDFS);
      Path dataDir = new Path(state.getProp(ConfigurationKeys.SOURCE_FILEBASED_DATA_DIRECTORY));
      String dataset = Path.getPathWithoutSchemeAndAuthority(dataDir).toString();
      DatasetDescriptor source = new DatasetDescriptor(platform, dataset);
      lineageInfo.get().setSource(source, workUnit);
    }
docs: Add lineage source info to a single work unit
  
  @param workUnit a single work unit, not an instance of {@link org.apache.gobblin.source.workunit.MultiWorkUnit}
  @param state configurations