Point () { int startOffset = getStartOffset(); FoldRegion visibleRegion = myEditor.getFoldingModel().getCollapsedRegionAtOffset(startOffset); return visibleRegion == this ? new Point(myEditor.getContentComponent().getInsets().left, myEditor.visualLineToY(myEditor.offsetToVisualLine(startOffset))) : null; }