void (@NotNull Graphics g, @NotNull String s, int x, int y, Color foreground, Color highlighting) { g.setColor(highlighting); boolean isRetina = JreHiDpiUtil.isJreHiDPI((Graphics2D)g); float scale = 1 / JBUIScale.sysScale((Graphics2D)g); for (float i = x - 1; i <= x + 1; i += isRetina ? scale : 1) { for (float j = y - 1; j <= y + 1; j += isRetina ? scale : 1) { ((Graphics2D)g).drawString(s, i, j); } } g.setColor(foreground); g.drawString(s, x, y); }