class DeclarativeSampler implements SamplerFunction<M> {

  @Deprecated public SamplingFlags sample(@Nullable M method) {
    if (method == null) return SamplingFlags.EMPTY;
    return SamplingFlags.Builder.build(trySample(method));
  }

    DeclarativeSampler();

}