public static Icon scaleIcon(Icon icon, EditorImpl editor) {
    float scale = getEditorScaleFactor(editor);
    return scale == 1 ? icon : IconUtil.scale(icon, editor.getComponent(), scale);
  }
public static Icon scaleIcon(Icon icon, EditorImpl editor)