public static int getLineStartIndentedOffset(@NotNull Document document, int line) {
    int lineStartOffset = document.getLineStartOffset(line);
    return lineStartOffset + getIndentLengthAtLineStart(document, lineStartOffset);
  }
public static int getLineStartIndentedOffset(@NotNull Document document, int line)