protected @Nullable Indent getIndentInBlock(@NotNull Project project,
                                              @Nullable Language language,
                                              @NotNull SemanticEditorPosition blockStartPosition) {
    if (language != null) {
      CommonCodeStyleSettings settings = CodeStyle.getSettings(blockStartPosition.getEditor()).getCommonSettings(language);
      if (settings.BRACE_STYLE == CommonCodeStyleSettings.NEXT_LINE_SHIFTED) {
        return getDefaultIndentFromType(settings.METHOD_BRACE_STYLE == CommonCodeStyleSettings.NEXT_LINE_SHIFTED ? NONE : null);
      }
    }
    return getDefaultIndentFromType(NORMAL);
  }
protected @Nullable Indent getIndentInBlock(@NotNull Project project,
                                              @Nullable Language language,
                                              @NotNull SemanticEditorPosition blockStartPosition)