int (@NotNull Document document, int line) { int startOffset = document.getLineStartOffset(line); int endOffset = document.getLineEndOffset(line); return getFirstNonSpaceCharOffset(document, startOffset, endOffset); }