@Nullable
    @Override
    public String generate(@NotNull ChainVariable inVar,
                           @NotNull ChainVariable outVar,
                           @NotNull String code,
                           @NotNull OptionalToIfContext context) {
      if (myFn == null) {
        context.setElseBranch("throw new java.util.NoSuchElementException(\"No value present\");");
      }
      else {
        myFn.transform(context);
        context.setElseBranch("throw " + myFn.getStatementText());
      }
      return context.createResult(outVar.getName());
    }
@Nullable
    @Override
    public String generate(@NotNull ChainVariable inVar,
                           @NotNull ChainVariable outVar,
                           @NotNull String code,
                           @NotNull OptionalToIfContext context)