void (Graphics2D g, int x, int y, int width, int height, Insets insets) { if (insets.top == 1) { LinePainter2D.paint(g, x, y, x + width, y); } if (insets.right == 1) { LinePainter2D.paint(g, x + width - 1, y, x + width - 1, y + height); } if (insets.left == 1) { LinePainter2D.paint(g, x, y, x, y + height); } if (insets.bottom == 1) { LinePainter2D.paint(g, x, y + height - 1, x + width, y + height - 1); } if (!StartupUiUtil.isUnderDarcula()) { return; } Color c = g.getColor(); if (insets.top == 2) { g.setColor(c); LinePainter2D.paint(g, x, y, x + width, y); g.setColor(Gray._85); LinePainter2D.paint(g, x, y + 1, x + width, y + 1); } if (insets.right == 2) { g.setColor(Gray._85); LinePainter2D.paint(g, x + width - 1, y, x + width - 1, y + height); g.setColor(c); LinePainter2D.paint(g, x + width - 2, y, x + width - 2, y + height); } if (insets.left == 2) { g.setColor(Gray._85); LinePainter2D.paint(g, x + 1, y, x + 1, y + height); g.setColor(c); LinePainter2D.paint(g, x, y, x, y + height); } }