private @Nullable ASTNode processTernaryOperationRange(final @NotNull List<? super Block> result,
                                                         final @NotNull ASTNode child,
                                                         final Wrap defaultWrap,
                                                         final Indent childIndent) {
    final ArrayList<Block> localResult = new ArrayList<>();
    final Wrap wrap = arrangeChildWrap(child, defaultWrap);
    final Alignment alignment = myReservedAlignment;
    final Alignment alignment2 = myReservedAlignment2;
    localResult.add(new LeafBlock(child, wrap, chooseAlignment(alignment,  alignment2, child), childIndent));

    ASTNode current = child.getTreeNext();
    while (current != null) {
      if (!FormatterUtil.containsWhiteSpacesOnly(current) && current.getTextLength() > 0) {
        if (isTernaryOperationSign(current)) break;
        current = processChild(localResult, current, chooseAlignment(alignment,  alignment2, current), defaultWrap, childIndent);
      }
      if (current != null) {
        current = current.getTreeNext();
      }
    }

    result.add(new SyntheticCodeBlock(localResult,  chooseAlignment(alignment,  alignment2, child), getSettings(), myJavaSettings, null, wrap));

    if (current == null) {
      return null;
    }
    return current.getTreePrev();
  }
private @Nullable ASTNode processTernaryOperationRange(final @NotNull List<? super Block> result,
                                                         final @NotNull ASTNode child,
                                                         final Wrap defaultWrap,
                                                         final Indent childIndent)