List<GutterMark> (int line) { if (myLineToGutterRenderers == null || myLineToGutterRenderersCacheForLogicalLines != logicalLinesMatchVisualOnes()) { buildGutterRenderersCache(); } Segment focusModeRange = myEditor.getFocusModeRange(); if (focusModeRange != null) { int start = myEditor.offsetToVisualLine(focusModeRange.getStartOffset()); int end = myEditor.offsetToVisualLine(focusModeRange.getEndOffset()); if (line < start || line > end) return Collections.emptyList(); } List<GutterMark> marks = myLineToGutterRenderers.get(line); return marks != null ? marks : Collections.emptyList(); }