public static int getIndentLength(@NotNull Document document, int offset) {
    return getIndentLengthAtLineStart(document, getLineStartOffset(offset, document));
  }
public static int getIndentLength(@NotNull Document document, int offset)