paintLineNumbers(gfx);
if (!expanded) continue;  String number = Integer.toString(line + 1);  int offset; switch (alignment) { case RIGHT: offset = gutterSize.width - collapsedSize.width - (fm.stringWidth(number) + 1); break; case CENTER: offset = ((gutterSize.width - collapsedSize.width) - fm.stringWidth(number)) / 2; break; case LEFT: default: offset = 0; }  if (line == textArea.getCaretLine() && highlightCurrentLine) gfx.setColor(currentLineHighlight); else if (interval > 1 && line % interval == 0) gfx.setColor(intervalHighlight); else gfx.setColor(fg);  gfx.drawString(number, ileft + offset, baseline + y);
	public void paintComponent(Graphics gfx)	{		if (expanded)		{			// fill the background			Rectangle r = gfx.getClipBounds();			gfx.setColor(getBackground());			gfx.fillRect(r.x, r.y, r.width, r.height);			// if buffer is loading, don't paint anything			if (!textArea.getBuffer().isLoaded())				return;			// paint custom highlights, if there are any			if (highlights != null) paintCustomHighlights(gfx);			// paint line numbers			paintLineNumbers(gfx);		}	}