public void reattach(final DebugEnvironment environment, boolean keepCurrentVM, Runnable vmReadyCallback) {
    reattach(environment, () -> {
      if (keepCurrentVM) {
        detachProcess(false, true, vmData -> {
          myStashedVirtualMachines.addFirst(vmData);
          myDebuggerManagerThread = createManagerThread();
        });
      }
      else {
        closeCurrentProcess(false);
      }
    }, vmReadyCallback);
  }
public void reattach(final DebugEnvironment environment, boolean keepCurrentVM, Runnable vmReadyCallback)