void (ImageComparator comparator, int scale, boolean jreHiDPIEnabled) { overrideJreHiDPIEnabled(jreHiDPIEnabled); float scale1 = jreHiDPIEnabled ? 1 : scale; JBUIScale.setUserScaleFactor(scale1); BufferedImage image = supplyGraphics(scale, getImageSize().width, getImageSize().height, this::paint); //saveImage(image, getGoldenImagePath(scale)); // uncomment to recreate golden image compare(image, loadImage(getGoldenImagePath(scale)), comparator, scale); }