String initAccumulator(ChainVariable inVar, StreamToLoopReplacementContext context, boolean canBeFinal) {
      transform(context, inVar.getName());
      PsiType resultType = correctReturnType(myType);
      return context.declareResult(myAccNameSupplier.apply(context), resultType, myMostAbstractAllowedType, getSupplier(),
                                   canBeFinal ? ResultKind.FINAL : ResultKind.UNKNOWN);
    }
String initAccumulator(ChainVariable inVar, StreamToLoopReplacementContext context, boolean canBeFinal)