public @NotNull Block createJavaBlock(@NotNull ASTNode child,
                                        @NotNull CommonCodeStyleSettings settings,
                                        @NotNull JavaCodeStyleSettings javaSettings,
                                        @Nullable Indent indent,
                                        @Nullable Wrap wrap,
                                        Alignment alignment,
                                        @NotNull FormattingMode formattingMode) {
    return createJavaBlock(child, settings, javaSettings,indent, wrap, AlignmentStrategy.wrap(alignment), formattingMode);
  }
public @NotNull Block createJavaBlock(@NotNull ASTNode child,
                                        @NotNull CommonCodeStyleSettings settings,
                                        @NotNull JavaCodeStyleSettings javaSettings,
                                        @Nullable Indent indent,
                                        @Nullable Wrap wrap,
                                        Alignment alignment,
                                        @NotNull FormattingMode formattingMode)