private <T extends AbstractCommand<?>> void executeCommandSafely(@NotNull T command) {
    try {
      command.execute();
    }
    catch (PyDebuggerException e) {
      if (isConnected()) {
        LOG.error("Command " + command + " failed", e);
      }
    }
  }
private <T extends AbstractCommand<?>> void executeCommandSafely(@NotNull T command)