void (ImageComparator comparator, double scale, boolean jreHiDPIEnabled, StrokeType strokeType) { overrideJreHiDPIEnabled(jreHiDPIEnabled); float scale1 = jreHiDPIEnabled ? 1 : (float)scale; JBUIScale.setUserScaleFactor(scale1); BufferedImage rect = supplyGraphics(scale, 15, 15, strokeType == StrokeType.INSIDE ? RectanglePainter2DTest::paintRectInside : RectanglePainter2DTest::paintRectCentered); BufferedImage outline = supplyGraphics(scale, 15, 15, strokeType == StrokeType.INSIDE ? RectanglePainter2DTest::outlineRectInside : RectanglePainter2DTest::outlineRectCentered); compare(rect, outline, comparator, scale); }