void (final ScaleContext ctx) { assume(ctx); JBUIScale.setUserScaleFactor((float)ctx.getScale(USR_SCALE)); ScaleContext ctx_noObjScale = ctx.copy(); ctx_noObjScale.setScale(OBJ_SCALE.of(1)); String[] cellIconsPaths = getCellIconsPaths(); int count = cellIconsPaths.length; CachedImageIcon[] cellIcons = new CachedImageIcon[count]; for (int i = 0; i < count; i++) { cellIcons[i] = CachedImageIconKt.createCachedIcon(Path.of(cellIconsPaths[i]), ctx_noObjScale); } Icon scaledIcon = createCompositeIcon(ctx_noObjScale, cellIcons).scale((float)ctx.getScale(OBJ_SCALE)); test(scaledIcon, ctx); }