void (@NotNull Icon icon, @Nullable ScaleContext ctx, int usrSize, int devSize, @NotNull String testDescription) { assertThat(icon.getIconWidth()).describedAs(testDescription + ": unexpected icon user width").isEqualTo(usrSize); assertThat(icon.getIconHeight()).describedAs(testDescription + ": unexpected icon user height").isEqualTo(usrSize); Image image = IconLoader.toImage(icon, ctx); assertThat(ImageUtil.getRealWidth(image)).describedAs(testDescription + ": unexpected icon real width").isEqualTo(devSize); assertThat(ImageUtil.getRealHeight(image)).describedAs(testDescription + ": unexpected icon real height").isEqualTo(devSize); }