void (RecentLocationItem value) { getEditor().getCaretModel().removeSecondaryCarets(); getEditor().getSelectionModel().removeSelection(true); getEditor().getMarkupModel().removeAllHighlighters(); getEditor().getGutterComponentEx().setLineNumberConverter( value.linesShift == 0 ? LineNumberConverter.DEFAULT : new LineNumberConverter.Increasing() { @Override public Integer convert(@NotNull Editor editor, int lineNumber) { return lineNumber + value.linesShift; } }); setText(value.text); getEditor().getGutterComponentEx().updateUI(); }