void (MouseEvent e) { if (!isLineMarkersShown() || !ExperimentalUI.isNewUI() || !Registry.is("ide.gutter.update.free.markers.on.hover")) { return; } Point point = e.getPoint(); int x = convertX(point.x); int hoveredLine; if (x >= getExtraLineMarkerFreePaintersAreaOffset() && x <= getExtraLineMarkerFreePaintersAreaOffset() + getExtraLeftFreePaintersAreaWidth()) { hoveredLine = getEditor().xyToLogicalPosition(point).line; } else { hoveredLine = -1; } if (myHoveredFreeMarkersLine != hoveredLine) { myHoveredFreeMarkersLine = hoveredLine; repaint(); } }