private <T extends AbstractCommand<?>> T executeCommand(@NotNull T command) throws PyDebuggerException {
    try {
      command.execute();
    }
    catch (PyDebuggerException e) {
      if (isConnected()) {
        throw e;
      }
    }
    return command;
  }
private <T extends AbstractCommand<?>> T executeCommand(@NotNull T command)