void () { int line = getLine(); if (line < 0) { return; } final Document document = getCachedDocument(); if (document == null) return; MarkupModelEx markup = (MarkupModelEx)DocumentMarkupModel.forDocument(document, myTarget.getProject(), true); final Document markupDocument = markup.getDocument(); if (markupDocument.getLineCount() <= line) return; RangeHighlighterEx highlighter = findMyHighlighter(); if (highlighter != null) { myHighlighterRef = null; highlighter.dispose(); } }