void (@NotNull Editor editor, @NotNull Project project, @NotNull Alarm alarm) { alarm.cancelAllRequests(); SelectionModel selectionModel = editor.getSelectionModel(); // Don't update braces in case of the active selection. if (editor.getProject() != project || selectionModel.hasSelection()) { return; } updateHighlighted(project, editor, alarm); }