public static CompletableFuture<String> sourceName(ReferenceType type) {
    if (type instanceof ReferenceTypeImpl && isAsyncEnabled()) {
      return reschedule(((ReferenceTypeImpl)type).sourceNameAsync());
    }
    return toCompletableFuture(() -> type.sourceName());
  }
public static CompletableFuture<String> sourceName(ReferenceType type)