private @NotNull Icon getScaled(int layer) {
    Icon icon = getIcon(layer);
    assert icon != null;
    float scale = getScale();
    return scale == 1f ? icon : IconUtil.scale(icon, null, scale);
  }
private @NotNull Icon getScaled(int layer)