public static CompletableFuture<List<ReferenceType>> allCLasses(VirtualMachine virtualMachine) {
    if (virtualMachine instanceof VirtualMachineImpl && isAsyncEnabled()) {
      return ((VirtualMachineImpl)virtualMachine).allClassesAsync();
    }
    return toCompletableFuture(() -> virtualMachine.allClasses());
  }
public static CompletableFuture<List<ReferenceType>> allCLasses(VirtualMachine virtualMachine)