void (@NotNull EditorMouseEvent event) { Editor editor = event.getEditor(); if (event.getArea() == EditorMouseEventArea.EDITING_AREA && shouldShowTooltip(editor)) { event.consume(); myAlarm.cancelAllRequests(); showTooltip(editor); } }