public @NotNull RunResult logException(Logger logger) {
    if (myThrowable != null) {
      logger.error(myThrowable);
    }

    return this;
  }
public @NotNull RunResult logException(Logger logger)