boolean (@NotNull EditorEx editor, @NotNull MouseEvent event) { if (event.getSource() != editor.getGutter()) { return false; } EditorGutterComponentEx gutter = editor.getGutterComponentEx(); int x = event.getX(); int areaOffset = gutter.getAnnotationsAreaOffset(); int areaWidth = gutter.getAnnotationsAreaWidth(); return x >= areaOffset && x < areaOffset + areaWidth; }