void () { for (Map.Entry<RangeMarker, LineMarkerInfo<?>> entry : myLineMarkerInfos.entrySet()) { RangeMarker rangeMarker = entry.getKey(); int startOffset = rangeMarker.getStartOffset(); int endOffset = rangeMarker.getEndOffset(); LineMarkerInfo<?> value = entry.getValue(); TextRange range = new TextRange(startOffset, endOffset); String tooltip = value.getLineMarkerTooltip(); Icon icon = value.getIcon(); MyLineMarkerInfo markerInfo = new MyLineMarkerInfo(range, GutterIconRenderer.Alignment.RIGHT, tooltip, icon != null ? icon.toString() : null); entry.setValue(markerInfo); } }