code: public static boolean isLineageInstrumented(Object obj) {
  
      List<Object> lineage = DecoratorUtils.getDecoratorLineage(obj);
  
      for (Object node : lineage) {
        if (node instanceof Instrumentable) {
          return true;
        }
      }
  
      return false;
    }
docs: Determines whether an object or, if it is a {@link org.apache.gobblin.util.Decorator}, any object on its lineage,
  is of class {@link org.apache.gobblin.instrumented.Instrumentable}.
  @param obj Object to analyze.
  @return Whether the lineage is instrumented.