void (final MouseEvent e) { if (myEditor.getMouseEventArea(e) == EditorMouseEventArea.ANNOTATIONS_AREA) { final Point clickPoint = e.getPoint(); final TextAnnotationGutterProvider provider = getProviderAtPoint(clickPoint); if (provider == null) { return; } EditorGutterAction action = myProviderToListener.get(provider); if (action != null) { int line = getLineNumAtPoint(clickPoint); if (line >= 0 && line < myEditor.getDocument().getLineCount() && UIUtil.isActionClick(e, MouseEvent.MOUSE_RELEASED)) { UIEventLogger.EditorAnnotationClicked.log(myEditor.getProject(), provider.getClass()); action.doAction(line); } } } }