code: public static AnnotatedRowsResult createIfSampleRowsAvailable(final RowAnnotation annotation,
              final RowAnnotationFactory annotationFactory, final InputColumn<?>... columns) {
          if (annotationFactory.hasSampleRows(annotation)) {
              return new AnnotatedRowsResult(annotation, annotationFactory, columns);
          }
          return null;
      }
docs: Factory method for {@link AnnotatedRowsResult} that will return non-null
  ONLY if the {@link RowAnnotation} passed in has any sample rows according
  to the {@link RowAnnotationFactory}.
  
  Otherwise returning null has the benefit that usually it makes it easy to
  filter out unnecesary drill-to-detail result objects.
  
  @param annotation
  @param annotationFactory
  @param column
  @return