void (Graphics2D g) { if (!debug()) return; Point p = MouseInfo.getPointerInfo().getLocation(); SwingUtilities.convertPointFromScreen(p, this.myEditor.getComponent()); if (p.x >= 0 && p.x <= getWidth()) { int off = 0; for (EditorGutterLayout.GutterArea area : myLayout.getLayout()) { int x = off; off += area.width(); if (off >= p.x) { g.setPaint(ColorUtil.withAlpha(JBColor.GREEN, 0.15)); g.fillRect(x, 0, area.width(), getHeight()); g.setPaint(myEditor.getColorsScheme().getColor(EditorColors.LINE_NUMBERS_COLOR)); g.setFont(JBUI.Fonts.smallFont().lessOn(2f)); int y = SwingUtilities.convertPoint(myEditor.getComponent(), p, myEditor.getScrollPane()).y; g.drawString(String.valueOf(area.width()), x, y + g.getClipBounds().y - 10); break; } } } }