private @Nullable ASTNode processEnumBlock(@NotNull List<? super Block> result,
                                             @Nullable ASTNode child,
                                             ASTNode last)
  {
    final WrappingStrategy wrappingStrategy = new WrappingStrategy(Wrap.createWrap(getWrapType(mySettings.ENUM_CONSTANTS_WRAP), true)) {
      @Override
      protected boolean shouldWrap(IElementType type) {
        return type == JavaElementType.ENUM_CONSTANT;
      }
    };
    while (child != null) {
      if (!FormatterUtil.containsWhiteSpacesOnly(child) && child.getTextLength() > 0) {
        result.add(createJavaBlock(child, mySettings, myJavaSettings, Indent.getNormalIndent(),
                                   wrappingStrategy.getWrap(child.getElementType()), AlignmentStrategy.getNullStrategy(), myFormattingMode));
        if (child == last) return child;
      }
      child = child.getTreeNext();
    }
    return null;
  }
private @Nullable ASTNode processEnumBlock(@NotNull List<? super Block> result,
                                             @Nullable ASTNode child,
                                             ASTNode last)