EditorMouseEventArea (MouseEvent e) { if (myGutterComponent != e.getSource()) return EditorMouseEventArea.EDITING_AREA; int x = myGutterComponent.convertX(e.getX()); if (x >= myGutterComponent.getLineNumberAreaOffset() && x < myGutterComponent.getLineNumberAreaOffset() + myGutterComponent.getLineNumberAreaWidth()) { return EditorMouseEventArea.LINE_NUMBERS_AREA; } if (x >= myGutterComponent.getAnnotationsAreaOffset() && x <= myGutterComponent.getAnnotationsAreaOffset() + myGutterComponent.getAnnotationsAreaWidth()) { return EditorMouseEventArea.ANNOTATIONS_AREA; } if (x >= myGutterComponent.getLineMarkerAreaOffset() && x < myGutterComponent.getLineMarkerAreaOffset() + myGutterComponent.getLineMarkerAreaWidth()) { return EditorMouseEventArea.LINE_MARKERS_AREA; } if (x >= myGutterComponent.getFoldingAreaOffset() && x < myGutterComponent.getFoldingAreaOffset() + myGutterComponent.getFoldingAreaWidth()) { return EditorMouseEventArea.FOLDING_OUTLINE_AREA; } return null; }