void (RecentLocationItem value) { Couple<Highlight[]> highlights = myItemHighlights.get(value); if (highlights == null) { myItemsDeque.addFirst(value); } else { MarkupModelEx markupModel = getEditor().getMarkupModel(); for (Highlight highlight : highlights.first) { markupModel.addRangeHighlighter(highlight.start, highlight.end, HighlighterLayer.SYNTAX - 1, highlight.attrs, HighlighterTargetArea.EXACT_RANGE); } for (Highlight highlight : highlights.second) { markupModel.addRangeHighlighter(highlight.start, highlight.end, HighlighterLayer.SYNTAX, highlight.attrs, HighlighterTargetArea.EXACT_RANGE); } } }