void (VirtualFile file, int start, int end) { removeHighlighter(); editor = FileEditorManager.getInstance(project).openTextEditor(new OpenFileDescriptor(project, file), false); if (editor == null) { return; } myHighlighter = editor.getMarkupModel().addRangeHighlighter( EditorColors.SEARCH_RESULT_ATTRIBUTES, start, end, HighlighterLayer.SELECTION - 100, HighlighterTargetArea.EXACT_RANGE ); }