private void importDTPLabel(
      TokensAndUrlAuthData authData,
      IdempotentImportExecutor idempotentExecutor,
      Supplier<Map<String, String>> allDestinationLabels) throws Exception {
    idempotentExecutor.executeAndSwallowIOExceptions(
        LABEL,
        LABEL,
        () -> {
          String migratedLabelId = allDestinationLabels.get().get(LABEL);
          if (migratedLabelId == null) {
            migratedLabelId = createImportedLabelId(authData, LABEL);
          }
          return migratedLabelId;
        });
  }
Creates a label in the import account to associate with all imported messages.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/mail/GoogleMailImporter.java