code: @Deprecated
    public static void createAndRegisterWithProjectId(String projectId, Duration exportInterval)
        throws IOException {
      checkNotNull(projectId, "projectId");
      checkNotNull(exportInterval, "exportInterval");
      createInternal(
          null, projectId, exportInterval, DEFAULT_RESOURCE, null, DEFAULT_CONSTANT_LABELS);
    }
docs: Creates a Stackdriver Stats exporter for an explicit project ID, with default Monitored
  Resource.
  
  <p>Only one Stackdriver exporter can be created.
  
  <p>This uses the default application credentials. See {@link
  GoogleCredentials#getApplicationDefault}.
  
  <p>This is equivalent with:
  
  <pre>{@code
  StackdriverStatsExporter.createWithCredentialsAndProjectId(
  GoogleCredentials.getApplicationDefault(), projectId);
  }</pre>
  
  @param projectId the cloud project id.
  @param exportInterval the interval between pushing stats to StackDriver.
  @throws IllegalStateException if a Stackdriver exporter is already created.
  @deprecated in favor of {@link #createAndRegister(StackdriverStatsConfiguration)}.
  @since 0.9