List<Guide> (@NotNull Editor editor) { Document document = editor.getDocument(); Map<TextRange, RangeHighlighter> highlighters = StringContentIndentUtil.getIndentHighlighters(editor); List<Guide> guides = new ArrayList<>(); for (Map.Entry<TextRange, RangeHighlighter> entry : highlighters.entrySet()) { TextRange range = entry.getKey(); int startLine = document.getLineNumber(range.getStartOffset()); int endLine = document.getLineNumber(range.getEndOffset()); int indent = StringContentIndentUtil.getIndent(entry.getValue()); guides.add(new Guide(startLine - 1, endLine + 1, indent)); } return guides; }